public function createAlbum() { $client = $this->photos; $album = new Photos\AlbumEntry(); $album->setTitle($client->newTitle("testAlbum")); $album->setCategory(array($client->newCategory('http://schemas.google.com/photos/2007#album', 'http://schemas.google.com/g/2005#kind'))); $newAlbum = $client->insertAlbumEntry($album); $this->assertEquals($album->getTitle(), $newAlbum->getTitle()); $this->assertEquals($newAlbum->getTitle(), $client->getAlbumEntry($newAlbum->getLink('self')->href)->getTitle()); $albumFeedUri = $newAlbum->getLink('http://schemas.google.com/g/2005#feed')->href; $albumFeed = $client->getAlbumFeed($albumFeedUri); $this->verifyProperty($albumFeed, "title", "text", "testAlbum"); return $newAlbum; }