Exemplo n.º 1
0
 public function testScriptFeaturesWithChild()
 {
     $frame = new Frame();
     $child = new Audio();
     $preloadFeature = new Preload();
     $child->addScriptFeature($preloadFeature);
     $this->assertEmpty($frame->getScriptFeatures());
     $frame->addChild($child);
     $this->assertEquals(array($preloadFeature), $frame->getScriptFeatures());
     $frame->removeAllChildren();
     $this->assertEmpty($frame->getScriptFeatures());
 }