diff --git a/.travis.yml b/.travis.yml index 39aecd29..d718aee6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,10 @@ env: matrix: include: + - php: 7.2 + env: SYMFONY_VERSION=4.2.* + - php: 7.2 + env: SYMFONY_VERSION=4.1.* - php: 7.2 env: SYMFONY_VERSION=4.0.* - php: 7.1 diff --git a/tests/Unit/NestedMatcher/UrlMatcherTest.php b/tests/Unit/NestedMatcher/UrlMatcherTest.php index 504e45b2..725b8955 100644 --- a/tests/Unit/NestedMatcher/UrlMatcherTest.php +++ b/tests/Unit/NestedMatcher/UrlMatcherTest.php @@ -83,7 +83,7 @@ public function doTestMatchRouteKey($routeKey) ; $this->routeCompiled->expects($this->atLeastOnce()) ->method('getRegex') - ->will($this->returnValue('#'.str_replace('/', '\/', $this->url).'#')) + ->will($this->returnValue('#'.str_replace('/', '\/', $this->url).'$#sD')) ; $this->routeDocument->expects($this->atLeastOnce()) ->method('compile') @@ -132,7 +132,7 @@ public function testMatchNoRouteObject() ; $this->routeCompiled->expects($this->atLeastOnce()) ->method('getRegex') - ->will($this->returnValue('#'.str_replace('/', '\/', $this->url).'#')) + ->will($this->returnValue('#'.str_replace('/', '\/', $this->url).'$#sD')) ; $this->routeDocument = $this->createMock(Route::class); $this->routeDocument->expects($this->atLeastOnce())