/** * Defining new unknown resource type, handler has no parse() * */ public function testCtxNoParse() { $this->markTestSkipped('Plugin loader implementation needs to be revisited'); Parser\TypeLoader::setResourceLoader(new TestAsset\TestResourceLoader("3")); $this->setExpectedException('Zend\\Amf\\Exception\\RuntimeException', 'Could not call parse()'); $resp = $this->_callService("returnCtx"); }
/** * Defining new unknown resource type, handler has no parse() * */ public function testCtxNoParse() { Parser\TypeLoader::setResourceLoader(new TestAsset\TestResourceLoader("3")); $this->setExpectedException('Zend\\AMF\\Exception', 'Could not call parse()'); $resp = $this->_callService("returnCtx"); }
/** * The server constructor */ public function __construct() { Parser\TypeLoader::setResourceLoader(new PluginLoader(array("Zend\\Amf\\Parser\\Resource" => "Zend/AMF/Parser/Resource"))); }