diff --git a/composer.json b/composer.json index af259d39..1c29cfa7 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index 1231d8a8..82705172 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -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 diff --git a/tests/PHPUnit/CustomTestCase/PhpunitTest.php b/tests/PHPUnit/CustomTestCase/ExecutedTest.php similarity index 67% rename from tests/PHPUnit/CustomTestCase/PhpunitTest.php rename to tests/PHPUnit/CustomTestCase/ExecutedTest.php index 233da16d..71a32980 100644 --- a/tests/PHPUnit/CustomTestCase/PhpunitTest.php +++ b/tests/PHPUnit/CustomTestCase/ExecutedTest.php @@ -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));