Skip to content

Commit 9accba7

Browse files
authored
Optimize ExampleTest (#95)
Co-authored-by: Deeka Wong <[email protected]>
1 parent 1ac737a commit 9accba7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/Cases/ExampleTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@
1111
*/
1212
namespace HyperfTest\Cases;
1313

14-
use HyperfTest\HttpTestCase;
14+
use Hyperf\Testing\TestCase;
1515

1616
/**
1717
* @internal
1818
* @coversNothing
1919
*/
20-
class ExampleTest extends HttpTestCase
20+
class ExampleTest extends TestCase
2121
{
2222
public function testExample()
2323
{
24-
$this->assertTrue(true);
25-
$this->assertTrue(is_array($this->get('/')));
24+
$this->get('/')->assertOk()->assertSee('Hyperf');
2625
}
2726
}

0 commit comments

Comments
 (0)