styleConverters ); $this->assertAttributeSame( $this->styleConverters, 'styleConverters', $gen ); $this->assertAttributeEquals( array( 'text-align', 'widows', 'orphans', 'text-indent', 'margin', 'border', 'break-before', ), 'styleAttributes', $gen ); } public function testCreateProperty() { $gen = new ezcDocumentOdtStyleParagraphPropertyGenerator( $this->styleConverters ); $parent = $this->getDomElementFixture(); $gen->createProperty( $parent, array( 'text-align' => new ezcDocumentPcssStyleStringValue( 'center' ), ) ); $this->assertPropertyExists( ezcDocumentOdt::NS_ODT_STYLE, 'paragraph-properties', array( array( ezcDocumentOdt::NS_ODT_FO, 'text-align' ), ), $parent ); } } ?>