mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
tests: for test names starting with P
This commit is contained in:
13
tests/Unit/TestName.php
Normal file
13
tests/Unit/TestName.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
it('may start with P', function (string $real, string $toBePrinted) {
|
||||
$printed = preg_replace('/P\\\/', '', $real, 1);
|
||||
|
||||
expect($printed)->toBe($toBePrinted);
|
||||
})->with([
|
||||
['P\Tests\BarTest', 'Tests\BarTest'],
|
||||
['P\Packages\Foo', 'Packages\Foo'],
|
||||
['P\PPPackages\Foo', 'PPPackages\Foo'],
|
||||
['PPPackages\Foo', 'PPPackages\Foo'],
|
||||
['PPPackages\Foo', 'PPPackages\Foo'],
|
||||
]);
|
||||
Reference in New Issue
Block a user