예제 #1
0
파일: Server.php 프로젝트: fproject/phpamf
 /**
  * The server constructor
  */
 public function __construct()
 {
     TypeLoader::setResourceLoader(new ResourceLoader(array("Resource" => "amf/parse/resource")));
 }
예제 #2
0
 /**
  * Defining new unknown resource type, handler has no parse()
  *
  */
 public function testCtxNoParse()
 {
     TypeLoader::setResourceLoader(new Zend_Amf_TestResourceLoader("3"));
     try {
         $resp = $this->_callService("returnCtx");
     } catch (\fproject\amf\AmfException $e) {
         $this->assertContains("Could not call parse()", $e->getMessage());
         return;
     }
     $this->fail("Failed to throw exception on unknown resource");
 }