/** * The server constructor */ public function __construct() { TypeLoader::setResourceLoader(new ResourceLoader(array("Resource" => "amf/parse/resource"))); }
/** * 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"); }