-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Q | A |
---|---|
PHPUnit version | 7.2.4 |
PHP version | 7.2.6 |
Installation Method | Both |
<?php
class Repro extends \PHPUnit\Framework\TestCase
{
public function someDataProvider(): array
{
return [['some values']];
}
public function testFirst(): void
{
self::assertTrue(true);
}
/**
* @depends testFirst
* @dataProvider someDataProvider
*/
public function testSecond($value)
{
self::assertTrue(true);
}
}
$ wget https://phar.phpunit.de/phpunit-7.2.phar
$ php phpunit-7.2.phar Repro.php --random-order --resolve-dependencies --debug
PHPUnit 7.2.4 by Sebastian Bergmann and contributors.
Test 'Repro::testSecond with data set #0 ('some values')' started
Test 'Repro::testSecond with data set #0 ('some values')' ended
Test 'Repro::testFirst' started
Test 'Repro::testFirst' ended
Time: 129 ms, Memory: 10.00MB
OK, but incomplete, skipped, or risky tests!
Tests: 2, Assertions: 1, Skipped: 1.
Edit:
Closed as duplicate of #3093.
Metadata
Metadata
Assignees
Labels
No labels