public function testReturnsTrueIfIdentityPassesAcls()
 {
     $listener = $this->listener;
     $this->mvcAuthEvent->getMvcEvent()->getRouteMatch()->setParam('controller', 'Foo\\Bar\\Controller');
     $this->mvcAuthEvent->setIdentity(new GuestIdentity());
     $this->mvcAuthEvent->setResource('Foo\\Bar\\Controller');
     $this->assertTrue($listener($this->mvcAuthEvent));
 }
 public function testGetIdentity()
 {
     $this->mvcAuthEvent->setIdentity($i = new GuestIdentity());
     $this->assertSame($i, $this->mvcAuthEvent->getIdentity());
 }