我正在使用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(