dom = self::getTestFileContentAsDom('TestGetInfoResult.xml'); } public function testConstruct() { $this->_testConstruct('Zend_Service_Technorati_GetInfoResult', array($this->dom)); } public function testConstructThrowsExceptionWithInvalidDom() { $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_GetInfoResult', 'DOMDocument'); } public function testGetInfoResult() { $object = new Zend_Service_Technorati_GetInfoResult($this->dom); // check author $author = $object->getAuthor(); $this->assertType('Zend_Service_Technorati_Author', $author); $this->assertEquals('weppos', $author->getUsername()); // check weblogs $weblogs = $object->getWeblogs(); $this->assertType('array', $weblogs); $this->assertEquals(2, count($weblogs)); $this->assertType('Zend_Service_Technorati_Weblog', $weblogs[0]); } }