Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
with:
dependency-versions: ${{ matrix.dependencies }}
- name: PHPUnit
run: vendor/bin/phpunit --coverage-clover=coverage.clover
run: php blackbox.php
env:
ENABLE_COVERAGE: 'true'
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
composer.lock
vendor
.phpunit.result.cache
27 changes: 27 additions & 0 deletions blackbox.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
declare(strict_types = 1);

require 'vendor/autoload.php';

use Innmind\BlackBox\{
Application,
PHPUnit\Load,
Runner\CodeCoverage,
};

Application::new($argv)
->when(
\getenv('ENABLE_COVERAGE') !== false,
static fn(Application $app) => $app
->codeCoverage(
CodeCoverage::of(
__DIR__.'/src/',
__DIR__.'/tests/',
)
->dumpTo('coverage.clover')
->enableWhen(true),
)
->scenariiPerProof(1),
)
->tryToProve(Load::directory(__DIR__.'/tests/'))
->exit();
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
}
},
"require-dev": {
"phpunit/phpunit": "~9.0",
"vimeo/psalm": "~5.6",
"innmind/black-box": "~6.5",
"innmind/coding-standard": "~2.0"
}
}
18 changes: 0 additions & 18 deletions phpunit.xml.dist

This file was deleted.

2 changes: 1 addition & 1 deletion tests/ViaAuthorizationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
};
use Innmind\Url\Url;
use Innmind\Immutable\Attempt;
use PHPUnit\Framework\TestCase;
use Innmind\BlackBox\PHPUnit\Framework\TestCase;

class ViaAuthorizationTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/ViaBasicAuthorizationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
};
use Innmind\Url\Url;
use Innmind\Immutable\Attempt;
use PHPUnit\Framework\TestCase;
use Innmind\BlackBox\PHPUnit\Framework\TestCase;

class ViaBasicAuthorizationTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/ViaFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
};
use Innmind\Url\Url;
use Innmind\Immutable\Attempt;
use PHPUnit\Framework\TestCase;
use Innmind\BlackBox\PHPUnit\Framework\TestCase;

class ViaFormTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/ViaUrlAuthorityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ProtocolVersion,
};
use Innmind\Immutable\Attempt;
use PHPUnit\Framework\TestCase;
use Innmind\BlackBox\PHPUnit\Framework\TestCase;

class ViaUrlAuthorityTest extends TestCase
{
Expand Down
Loading