/** @depends testCompile */ public function testSetIfEmptyCached() { $route = new Route(); $req = new Request(); $req->set('phpunit', $this); $route->setCache(TestCacheClass::getInstance()); $out = $route->doRoute($req, array('REQUEST_URI' => '/ifempty/algo')); $this->assertEquals('ALGO', $req->get('algo-alias')); $this->assertTrue($req->get('filter:cached:algo-alias')); }