Автор: Johann Zelger (jz@appserver.io)
Наследование: extends AppserverIo\Description\Api\Node\AbstractNode, use trait ParamsNodeTrait
Пример #1
0
 /**
  * Tests if the getType() method works as expected.
  *
  * @return void
  */
 public function testGetType()
 {
     // initialize the access node
     $this->access->setNodeName('access');
     $this->access->initFromFile(__DIR__ . '/_files/access.xml');
     // check the type and params
     $this->assertSame('allow', $this->access->getType());
     $this->assertSame(array('X_REQUEST_URI' => '.*'), $this->access->getParamsAsArray());
 }