jjzjj

GethuGames

全部标签

php - Slim - 从浏览器调用端点工作正常,而从 PHPUnit 测试调用端点返回 404

我正在使用PHPUnit@http://there4development.com/blog/2013/10/13/unit-testing-slim-framework-applications-with-phpunit/关注Slim的测试设置最初我的所有逻辑都在匿名函数中$app->get('/video/',function()use($app){//allcodegoeshere}通过PHPUnit进行测试效果很好...publicfunctiontestVideoCountInPage1(){$this->get('/video/');$this->assertEquals(