Skip to content

Commit

Permalink
Add a suite and another one for "All"
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmy committed Mar 6, 2023
1 parent 2512f01 commit a017c51
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="Functional">
<directory suffix="Test.php">./tests/Functional</directory>
</testsuite>
<testsuite name="All">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
18 changes: 18 additions & 0 deletions tests/Functional/ZombieFuncTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace Tests\Functional;

use App\Zombie;
use PHPUnit\Framework\TestCase;

final class ZombieFuncTest extends TestCase
{
public function testSaysBrains(): void
{
$zombie = new Zombie();

self::assertSame('Brains!', $zombie->say());
}
}

0 comments on commit a017c51

Please sign in to comment.