public function testGetListenersWithNoMatchingEntry() { $map = new FirewallMap(); $request = new Request(); $notMatchingMatcher = $this->getMock('Symfony\\Component\\HttpFoundation\\RequestMatcher'); $notMatchingMatcher->expects($this->once())->method('matches')->with($this->equalTo($request))->will($this->returnValue(false)); $map->add($notMatchingMatcher, array($this->getMock('Symfony\\Component\\Security\\Http\\Firewall\\ListenerInterface'))); list($listeners, $exception) = $map->getListeners($request); $this->assertEquals(array(), $listeners); $this->assertNull($exception); }