public function testMagicConstructorsPropogateMajorVersion() { $v = 42; $this->service->setMajorProtocolVersion($v); $feed = $this->service->newFeed(); $this->assertEquals($v, $feed->getMajorProtocolVersion()); }
public function testReloadInheritsClassname() { $className = '\\ZendGData\\Entry'; $etag = Etag::fromString('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('ZendGData\\Entry', get_class($newEntry)); }