コード例 #1
0
ファイル: Photo.php プロジェクト: ricardobar/WSClubeletro
    function testIsForFriends_False()
    {
        $photo = new Phlickr_Photo($this->api, simplexml_load_string(<<<XML
<photo id="2733" secret="123456" server="12"><visibility ispublic="1" isfriend="0" isfamily="1" /></photo>
XML
));
        $this->assertFalse($photo->isForFriends());
    }
コード例 #2
0
ファイル: Uploader.php プロジェクト: davidherzina/Phlickr
 function testUpload_WithClassPermissions()
 {
     $this->uploader->setPerms(false, false, false);
     // upload it
     $result = $this->uploader->Upload(TESTING_FILE_NAME_JPG, 'testing title', 'a description', 'atag btag');
     // verify the returned id
     $this->assertType('string', $result, 'Returned the wrong type.');
     $photo = new Phlickr_Photo($this->api, $result);
     $this->assertFalse($photo->isForPublic());
     $this->assertFalse($photo->isForFriends());
     $this->assertFalse($photo->isForFamily());
 }