mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
add more tests
This commit is contained in:
@ -42,13 +42,15 @@
|
|||||||
✓ eager registered wrapped datasets did the job right
|
✓ eager registered wrapped datasets did the job right
|
||||||
✓ lazy named datasets with (Bar Object (...))
|
✓ lazy named datasets with (Bar Object (...))
|
||||||
|
|
||||||
PASS Tests\Features\Depends
|
WARN Tests\Features\Depends
|
||||||
✓ first
|
✓ first
|
||||||
✓ second
|
✓ second
|
||||||
✓ depends
|
✓ depends
|
||||||
✓ depends with ...params
|
✓ depends with ...params
|
||||||
✓ depends with defined arguments
|
✓ depends with defined arguments
|
||||||
✓ depends run test only once
|
✓ depends run test only once
|
||||||
|
s incomplete → incomplete
|
||||||
|
w depends on incomplete → This test depends on "P\Tests\Features\Depends::incomplete" which does not exist.
|
||||||
|
|
||||||
PASS Tests\Features\Exceptions
|
PASS Tests\Features\Exceptions
|
||||||
✓ it gives access the the underlying expectException
|
✓ it gives access the the underlying expectException
|
||||||
@ -152,5 +154,5 @@
|
|||||||
WARN Tests\Visual\Success
|
WARN Tests\Visual\Success
|
||||||
s visual snapshot of test suite on success
|
s visual snapshot of test suite on success
|
||||||
|
|
||||||
Tests: 6 skipped, 85 passed
|
Tests: 1 warnings, 7 skipped, 85 passed
|
||||||
Time: 2.60s
|
Time: 2.65s
|
||||||
|
|||||||
@ -38,3 +38,7 @@ test('depends with defined arguments', function (string $first, string $second)
|
|||||||
test('depends run test only once', function () use (&$runCounter) {
|
test('depends run test only once', function () use (&$runCounter) {
|
||||||
assertEquals(2, $runCounter);
|
assertEquals(2, $runCounter);
|
||||||
})->depends('first', 'second');
|
})->depends('first', 'second');
|
||||||
|
|
||||||
|
test('incomplete')->skip('incomplete');
|
||||||
|
|
||||||
|
test('depends on incomplete')->depends('incomplete')->doesNotPerformAssertions();
|
||||||
|
|||||||
Reference in New Issue
Block a user