From 6aa03565704170ed5bef314e8a1f0a635e4f2f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20N=C3=BCrnberger?= Date: Fri, 19 Jun 2020 23:22:14 +0200 Subject: [PATCH] add more tests --- tests/.snapshots/success.txt | 8 +++++--- tests/Features/Depends.php | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index 3e6832ec..3f9845ae 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -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 diff --git a/tests/Features/Depends.php b/tests/Features/Depends.php index 0e7ed5ea..9a46034c 100644 --- a/tests/Features/Depends.php +++ b/tests/Features/Depends.php @@ -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();