Пример #1
0
 public function testReloadInheritsClassname()
 {
     $className = '\\Zend\\GData\\Entry';
     $etag = 'ABCD1234';
     $this->service->setMajorProtocolVersion(2);
     $this->adapter->setResponse($this->httpEntrySample);
     $entry = new $className();
     $entry->setService($this->service);
     $entry->link = array(new Extension\Link('http://www.example.com', 'edit', 'application/atom+xml'));
     $entry->setEtag($etag);
     $newEntry = $entry->reload();
     $this->assertEquals('Zend\\GData\\Entry', get_class($newEntry));
 }