Skip to content

Commit 46ec780

Browse files
committed
Fix PHP 5.3 tests
1 parent 737af7d commit 46ec780

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/TestCases/ContainerTestCase.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,11 @@ protected function mockConfig(array $options = array())
167167
*/
168168
protected function mockUrl()
169169
{
170-
$this->mock('url', 'Illuminate\Routing\UrlGenerator', function ($mock) {
170+
$request = $this->mockRequest();
171+
172+
$this->mock('url', 'Illuminate\Routing\UrlGenerator', function ($mock) use ($request) {
171173
return $mock
172-
->shouldReceive('getRequest')->andReturn($this->mockRequest())
174+
->shouldReceive('getRequest')->andReturn($request)
173175
->shouldReceive('to')->andReturnUsing(function ($url) {
174176
return $url == '#' ? $url : 'https://test/en/'.$url;
175177
})

0 commit comments

Comments
 (0)