Commit 5407435c authored by Dave Marshall's avatar Dave Marshall

Use PHPUnit annotation to skip test on <5.4

parent b4446482
......@@ -611,12 +611,11 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
$this->assertEquals('Hello world', $response->getContent());
}
/**
* @requires PHP 5.4
*/
public function testViewListenerWithCallableTypeHint()
{
if (version_compare(phpversion(), '5.4.0', '<')) {
$this->markTestSkipped('Requires PHP >= 5.4.0');
}
$app = new Application();
$app->get('/foo', function () { return function () { return 'world'; }; });
$app->view(function (callable $view) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment