Merge branch 'master' into windows-gitbash

This commit is contained in:
Dimitrios Karvounaris
2020-06-05 18:37:24 +02:00
committed by GitHub
3 changed files with 12 additions and 12 deletions

View File

@ -18,7 +18,7 @@
],
"require": {
"php": "^7.3",
"nunomaduro/collision": "^5.0",
"nunomaduro/collision": "^5.0.0-BETA2",
"pestphp/pest-plugin": "dev-master",
"pestphp/pest-plugin-coverage": "dev-master",
"phpunit/phpunit": "^9.1.4",

View File

@ -1,5 +1,5 @@
PASS Tests\CustomTestCase\PhpunitTest
PASS Tests\CustomTestCase\ExecutedTest
✓ that gets executed
PASS Tests\Features\AfterAll
@ -24,7 +24,7 @@
✓ it sets arrays
✓ it gets bound to test case object with ('a')
✓ it gets bound to test case object with ('b')
✓ it truncates the description with (' fooo fooo fooo fooo fooo fooo fooo f...oo fooo')
✓ it truncates the description with ('FoooFoooFoooFoooFoooFoooFoooF...ooFooo')
✓ lazy datasets with (1)
✓ lazy datasets with (2)
✓ lazy datasets did the job right
@ -40,10 +40,10 @@
✓ eager wrapped registered datasets with (1)
✓ eager wrapped registered datasets with (2)
✓ eager registered wrapped datasets did the job right
✓ lazy named datasets with ( bar object (...))
✓ lazy named datasets with (Bar Object (...))
PASS Tests\Features\Exceptions
✓ it gives access the the underlying expect exception
✓ it gives access the the underlying expectException
✓ it catch exceptions
✓ it catch exceptions and messages
@ -64,8 +64,8 @@
✓ it has bar
PASS Tests\Features\PendingHigherOrderTests
✓ get 'foo' → get 'bar' → assert true true
✓ get 'foo' → assert true true
✓ get 'foo' → get 'bar' → assertTrue true
✓ get 'foo' → assertTrue true
WARN Tests\Features\Skip
✓ it do not skips
@ -87,10 +87,10 @@
✓ it example 2
PASS Tests\PHPUnit\CustomTestCase\UsesPerDirectory
✓ closure was bound to custom test case
✓ closure was bound to CustomTestCase
PASS Tests\PHPUnit\CustomTestCaseInSubFolders\SubFolder\SubFolder\UsesPerSubDirectory
✓ closure was bound to custom test case
✓ closure was bound to CustomTestCase
PASS Tests\PHPUnit\CustomTestCaseInSubFolders\SubFolder2\UsesPerFile
✓ custom traits can be used

View File

@ -7,7 +7,7 @@ namespace Tests\CustomTestCase;
use function PHPUnit\Framework\assertTrue;
use PHPUnit\Framework\TestCase;
class PhpunitTest extends TestCase
class ExecutedTest extends TestCase
{
public static $executed = false;
@ -16,8 +16,8 @@ class PhpunitTest extends TestCase
{
self::$executed = true;
$this->assertTrue(true);
assertTrue(true);
}
}
// register_shutdown_function(fn () => assertTrue(PhpunitTest::$executed));
// register_shutdown_function(fn () => assertTrue(ExecutedTest::$executed));