コード例 #1
0
 public function testGetVersionExceptionOnSetRacy()
 {
     $videoEntry = new Zend_Gdata_YouTube_VideoEntry();
     $videoEntry->setMajorProtocolVersion(2);
     $exceptionCaught = false;
     try {
         $videoEntry->getRacy();
     } catch (Zend_Gdata_App_VersionException $e) {
         $exceptionCaught = true;
     }
     $this->assertTrue($exceptionCaught, 'Expected exception not caught: ' . 'Zend_Gdata_App_VersionException');
 }