public function testSameResultWithoutCachingConfig() { $config = array('view_helper' => array('query_string' => '_', 'cache' => null)); $filename = 'p**n-food/bac.on'; $resolver = $this->getGenericResolver(); $resolver->setMap(array('p**n-food/bac.on' => __FILE__)); $helper = new Asset($resolver, null, $config); $newFilename = $helper->__invoke($filename); $this->assertSame($newFilename, $filename); }
public function testForceToNotAppendTimestampWithoutCache() { $config = array('view_helper' => array('append_timestamp' => false, 'query_string' => '_', 'cache' => null)); $filename = 'p**n-food/bac.on'; $resolver = $this->getGenericResolver(); $resolver->setMap(array('p**n-food/bac.on' => __FILE__)); $helper = new Asset($resolver, null, $config); $newFilename = $helper->__invoke($filename); $this->assertNotContains('?_=', $newFilename); $this->assertSame($newFilename, $filename); }