-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
feature/configuration/xmlfeature/test-runnerCLI test runnerCLI test runnertype/bugSomething is brokenSomething is brokenversion/11Something affects PHPUnit 11Something affects PHPUnit 11version/12Something affects PHPUnit 12Something affects PHPUnit 12
Description
+ cat compose.yaml
services:
test:
image: php
volumes:
- type: bind
source: .
target: /app
read_only: false
working_dir: /app
+ cat tests/t.php
<?php
class tTest extends PHPUnit\Framework\TestCase {
function testT(){
$this->assertNull(null);
}
}
+ cat t.xml
<phpunit>
<testsuites>
<testsuite>
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
+ docker compose run --rm test vendor/bin/phpunit tests/t.php
PHPUnit 10.5.47 by Sebastian Bergmann and contributors.
Runtime: PHP 8.4.2
. 1 / 1 (100%)
Time: 00:00.005, Memory: 6.00 MB
OK (1 test, 1 assertion)
OK
+ docker compose run --rm test vendor/bin/phpunit -c t.xml
PHPUnit 10.5.47 by Sebastian Bergmann and contributors.
assert(!empty($name))
Why?
Metadata
Metadata
Assignees
Labels
feature/configuration/xmlfeature/test-runnerCLI test runnerCLI test runnertype/bugSomething is brokenSomething is brokenversion/11Something affects PHPUnit 11Something affects PHPUnit 11version/12Something affects PHPUnit 12Something affects PHPUnit 12