assertAttributeEquals( array( 'name' => 'testTableStyle', 'family' => ezcDocumentOdtStyle::FAMILY_TABLE, 'formattingProperties' => new ezcDocumentOdtFormattingPropertyCollection() ), 'properties', $style ); } public function testSetFormattingPropertiesSuccess() { $style = new ezcDocumentOdtStyle( ezcDocumentOdtStyle::FAMILY_TABLE, 'testTableStyle' ); $style->formattingProperties = new ezcDocumentOdtFormattingPropertyCollection(); } public function testSetFormattingPropertiesFailure() { $style = new ezcDocumentOdtStyle( ezcDocumentOdtStyle::FAMILY_TABLE, 'testTableStyle' ); try { $style->formattingProperties = new ArrayObject(); $this->fail( 'Did not fail on invalid value for property $formattingProperties.' ); } catch ( ezcBaseValueException $e ) {} } } ?>