Skip to content

Commit

Permalink
增加 PR #5 测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Apr 18, 2020
1 parent 6e32f59 commit 37ad96f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/DefaultHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,12 @@ public function testSwoole()
});
}

public function testSetDefaultHandler()
{
$this->assertNull(YurunHttp::getDefaultHandler());
YurunHttp::setDefaultHandler(\Exception::class);
$this->assertEquals(\Exception::class, YurunHttp::getDefaultHandler());
$this->assertInstanceOf(\Exception::class, YurunHttp::getHandler());
}

}

0 comments on commit 37ad96f

Please sign in to comment.