styleConverters ); $this->assertAttributeSame( $this->styleConverters, 'styleConverters', $gen ); $this->assertAttributeEquals( array( 'text-decoration', 'font-size', 'font-name', 'font-weight', 'color', 'background-color', ), 'styleAttributes', $gen ); } public function testCreateProperty() { $gen = new ezcDocumentOdtStyleTextPropertyGenerator( $this->styleConverters ); $parent = $this->getDomElementFixture(); $gen->createProperty( $parent, array( 'font-name' => new ezcDocumentPcssStyleStringValue( 'Font Name' ), ) ); $this->assertPropertyExists( ezcDocumentOdt::NS_ODT_STYLE, 'text-properties', array( array( ezcDocumentOdt::NS_ODT_STYLE, 'font-name' ) ), $parent ); } } ?>