Skip to content

Commit aba82e1

Browse files
committed
Fixed TestCase class namespace issue
1 parent 9fdae62 commit aba82e1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

examples/tests/suite/PostAPISuccessTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
namespace Tests\Suite;
44

5-
use \Tests\TestCase;
5+
use Tests\TestCase;
6+
7+
require_once __DIR__.'/../TestCase.php';
68

79
class PostAPISuccessTest extends TestCase
810
{

phpunit.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
>
77
<testsuites>
88
<testsuite name="Unit">
9-
<directory suffix="Test.php">.examples/tests/suite</directory>
10-
</testsuite>
11-
<testsuite name="Feature">
12-
<directory suffix="Test.php">.examples/tests/suite</directory>
9+
<directory suffix="Test.php">./examples/tests/suite</directory>
1310
</testsuite>
1411
</testsuites>
1512
<source>

0 commit comments

Comments
 (0)