Skip to content

Commit c37797d

Browse files
authored
Merge pull request #234 from symfony-cmf/test-with-symfony-41-42
test current symfony versions
2 parents e8731b4 + 132cd07 commit c37797d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ env:
3535

3636
matrix:
3737
include:
38+
- php: 7.2
39+
env: SYMFONY_VERSION=4.2.*
40+
- php: 7.2
41+
env: SYMFONY_VERSION=4.1.*
3842
- php: 7.2
3943
env: SYMFONY_VERSION=4.0.*
4044
- php: 7.1

tests/Unit/NestedMatcher/UrlMatcherTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function doTestMatchRouteKey($routeKey)
8383
;
8484
$this->routeCompiled->expects($this->atLeastOnce())
8585
->method('getRegex')
86-
->will($this->returnValue('#'.str_replace('/', '\/', $this->url).'#'))
86+
->will($this->returnValue('#'.str_replace('/', '\/', $this->url).'$#sD'))
8787
;
8888
$this->routeDocument->expects($this->atLeastOnce())
8989
->method('compile')
@@ -132,7 +132,7 @@ public function testMatchNoRouteObject()
132132
;
133133
$this->routeCompiled->expects($this->atLeastOnce())
134134
->method('getRegex')
135-
->will($this->returnValue('#'.str_replace('/', '\/', $this->url).'#'))
135+
->will($this->returnValue('#'.str_replace('/', '\/', $this->url).'$#sD'))
136136
;
137137
$this->routeDocument = $this->createMock(Route::class);
138138
$this->routeDocument->expects($this->atLeastOnce())

0 commit comments

Comments
 (0)