mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
add more tests
This commit is contained in:
@ -42,13 +42,15 @@
|
||||
✓ eager registered wrapped datasets did the job right
|
||||
✓ lazy named datasets with (Bar Object (...))
|
||||
|
||||
PASS Tests\Features\Depends
|
||||
WARN Tests\Features\Depends
|
||||
✓ first
|
||||
✓ second
|
||||
✓ depends
|
||||
✓ depends with ...params
|
||||
✓ depends with defined arguments
|
||||
✓ 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
|
||||
✓ it gives access the the underlying expectException
|
||||
@ -152,5 +154,5 @@
|
||||
WARN Tests\Visual\Success
|
||||
s visual snapshot of test suite on success
|
||||
|
||||
Tests: 6 skipped, 85 passed
|
||||
Time: 2.60s
|
||||
Tests: 1 warnings, 7 skipped, 85 passed
|
||||
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) {
|
||||
assertEquals(2, $runCounter);
|
||||
})->depends('first', 'second');
|
||||
|
||||
test('incomplete')->skip('incomplete');
|
||||
|
||||
test('depends on incomplete')->depends('incomplete')->doesNotPerformAssertions();
|
||||
|
||||
Reference in New Issue
Block a user