/**
* 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());
}