Ejemplo n.º 1
0
 /**
  */
 public function testParse()
 {
     $res = $this->object->parse();
     $this->assertTrue(is_array($res));
     $this->assertEquals(2, count($res));
     $this->assertEquals("testFunction", $res[0]['name']);
     $this->assertEquals("joeBarTeam", $res[1]['name']);
 }
Ejemplo n.º 2
0
 /**
  * Возвращает экземпляр Resolver на основе переданного SOAP клиента
  *
  * @param \SoapClient $client Клиент
  *
  * @return Resolver
  */
 public static function createFromClient(\SoapClient $client)
 {
     $functions = $client->__getFunctions();
     $types = $client->__getTypes();
     $functionParser = new FunctionParser($functions);
     $typeParser = new TypeParser($types);
     return new Resolver($functionParser->getFunctions(), $typeParser->getTypes());
 }