Ejemplo n.º 1
0
 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->assertInternalType('array', $weblogs);
     $this->assertEquals(2, count($weblogs));
     $this->assertType('Zend_Service_Technorati_Weblog', $weblogs[0]);
 }
Ejemplo n.º 2
0
 public function testGetInfoResult()
 {
     $object = new Zend_Service_Technorati_GetInfoResult($this->dom);
     // check author
     $author = $object->getAuthor();
     $this->assertTrue($author instanceof Zend_Service_Technorati_Author);
     $this->assertEquals('weppos', $author->getUsername());
     // check weblogs
     $weblogs = $object->getWeblogs();
     $this->assertTrue(is_array($weblogs));
     $this->assertEquals(2, count($weblogs));
     $this->assertTrue($weblogs[0] instanceof Zend_Service_Technorati_Weblog);
 }