dom = self::getTestFileContentAsDom('TestDailyCountsResultSet.xml'); } public function testConstruct() { $this->_testConstruct('Zend_Service_Technorati_DailyCountsResultSet', array($this->dom)); } public function testConstructThrowsExceptionWithInvalidDom() { $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_DailyCountsResultSet', 'DOMDocument'); } public function testDailyCountsResultSet() { $object = new Zend_Service_Technorati_DailyCountsResultSet($this->dom); // check counts $this->assertType('integer', $object->totalResults()); $this->assertEquals(5, $object->totalResults()); $this->assertType('integer', $object->totalResultsAvailable()); $this->assertEquals(5, $object->totalResultsAvailable()); // check properties $this->assertType('Zend_Uri_Http', $object->getSearchUrl()); $this->assertEquals(Zend_Uri::factory('http://technorati.com/search/google'), $object->getSearchUrl()); } public function testDailyCountsResultSetItemsInstanceOfResult() { $this->_testResultSetItemsInstanceOfResult( 'Zend_Service_Technorati_DailyCountsResultSet', array($this->dom), 'Zend_Service_Technorati_DailyCountsResult'); } public function testDailyCountsResultSetSerialization() { $this->_testResultSetSerialization(new Zend_Service_Technorati_DailyCountsResultSet($this->dom)); } }