/** * @dataProvider transactionProvider */ public function testIsMatched($transactions, $isMatched) { $routeMatch = $this->getRouteMatch(); $transactionMatcher = new TransactionMatcher($transactions); $mvcEvent = $this->prophesize(MvcEvent::class); $mvcEvent->getRouteMatch()->shouldBeCalled()->willReturn($routeMatch); $this->assertSame($isMatched, $transactionMatcher->isMatched($mvcEvent->reveal())); }
/** * @param MvcEvent $e * @return bool */ protected function isMatchedRequest(MvcEvent $e) { return $this->transactionMatcher->isMatched($e); }