Beispiel #1
0
 /**
  * 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");
 }
Beispiel #2
0
 /**
  * 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");
 }
Beispiel #3
0
 /**
  * The server constructor
  */
 public function __construct()
 {
     Parser\TypeLoader::setResourceLoader(new PluginLoader(array("Zend\\Amf\\Parser\\Resource" => "Zend/AMF/Parser/Resource")));
 }