/** * @requires PHP 5.4 */ public function testPHP5_4ClosureBinding() { $app = new Bullet\App(); // Skip test for HHVM if ($app->request()->isHHVM()) { $this->markTestSkipped('HHVM does not support Closure::bindTo'); } $app->path('php5_4', function ($request) { return $this->url('/worked/'); }); $result = $app->run('GET', '/php5_4/'); $this->assertEquals('cli:/worked/', $result->content()); }