Skip to content

Commit

Permalink
chore: setup deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler committed Mar 22, 2021
1 parent 9d41318 commit 93e9523
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,2 +1,4 @@
/vendor
composer.lock
build
.phpunit.result.cache
10 changes: 8 additions & 2 deletions composer.json
Expand Up @@ -27,16 +27,22 @@
"illuminate/database": "^8.0",
"spatie/yaml-front-matter": "^2.0",
"symplify/git-wrapper": "^9.2",
"illuminate/events": "^8.0"
"illuminate/events": "^8.0",
"phpunit/phpunit": "^9.5"
},
"require-dev": {
"vimeo/psalm": "^4.6"
"vimeo/psalm": "^4.6",
"orchestra/testbench": "^6.15"
},
"extra": {
"laravel": {
"providers": [
"Orbit\\OrbitServiceProvider"
]
}
},
"scripts": {
"psalm": "vendor/bin/psalm",
"test": "vendor/bin/phpunit --colors=always"
}
}
39 changes: 39 additions & 0 deletions phpunit.xml.dist
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
verbose="true"
>
<testsuites>
<testsuite name="Orbit Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
</phpunit>
16 changes: 16 additions & 0 deletions tests/TestCase.php
@@ -0,0 +1,16 @@
<?php

namespace Orbit\Tests;

use Orbit\OrbitServiceProvider;
use Orchestra\Testbench\TestCase as BaseTestCase;

class TestCase extends BaseTestCase
{
protected function getPackageProviders($app)
{
return [
OrbitServiceProvider::class,
];
}
}

0 comments on commit 93e9523

Please sign in to comment.