assertInstanceOf('SVG\Nodes\Structures\SVGStyle', $obj->setType($type)); $this->assertEquals($type, $obj->getAttribute('type')); } public function testGetType() { $obj = new SVGStyle(); $type = 'type_attribute'; $obj->setAttribute('type', $type); $this->assertSame($type, $obj->getType()); } public function testSetCss() { $obj = new SVGStyle(); $this->assertInstanceOf('SVG\Nodes\Structures\SVGStyle', $obj->setCss('svg {background-color: beige;}')); } public function testGetCss() { $obj = new SVGStyle(); $css = 'svg {background-color: beige;}'; $obj->setCss($css); $this->assertSame($css, $obj->getCss()); } }