Skip to content

Commit

Permalink
Fix PHP 5.3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahkiasen committed Dec 21, 2013
1 parent 737af7d commit 46ec780
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/TestCases/ContainerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,11 @@ protected function mockConfig(array $options = array())
*/
protected function mockUrl()
{
$this->mock('url', 'Illuminate\Routing\UrlGenerator', function ($mock) {
$request = $this->mockRequest();

$this->mock('url', 'Illuminate\Routing\UrlGenerator', function ($mock) use ($request) {
return $mock
->shouldReceive('getRequest')->andReturn($this->mockRequest())
->shouldReceive('getRequest')->andReturn($request)
->shouldReceive('to')->andReturnUsing(function ($url) {
return $url == '#' ? $url : 'https://test/en/'.$url;
})
Expand Down

0 comments on commit 46ec780

Please sign in to comment.