ExampleTest.php 364 B

12345678910111213141516171819202122
  1. <?php
  2. namespace EasySwoole\Phpunit\Tests;
  3. use PHPUnit\Framework\TestCase;
  4. use Swoole\Coroutine;
  5. class ExampleTest extends TestCase
  6. {
  7. function testNormal()
  8. {
  9. $this->assertEquals("easyswoole","easyswoole");
  10. }
  11. function testCoroutine()
  12. {
  13. Coroutine::sleep(0.001);
  14. $this->assertEquals("easyswoole","easyswoole");
  15. }
  16. }