public function test2() { $dep = new Kwf_Assets_Modernizr_Dependency(); $dep->addFeature('CssTransitions'); $this->assertContains('e.Modernizr=Modernizr', $dep->getContentsPacked()->getFileContents()); $this->assertNotContains('cssanimations', $dep->getContentsPacked()->getFileContents()); $this->assertContains('csstransitions', $dep->getContentsPacked()->getFileContents()); }
public function test2() { $dep = new Kwf_Assets_Modernizr_Dependency(); $dep->addFeature('CssTransitions'); $this->assertContains('window.Modernizr=', $dep->getContents('en')); $this->assertNotContains('cssanimations', $dep->getContents('en')); $this->assertContains('csstransitions', $dep->getContents('en')); }