Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 288c0f5

Browse files
committed
Fixed test for php 5.3
1 parent 67c4411 commit 288c0f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/AutoRoute/RouteMaker/GenericMakerTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ public function testMake()
4848

4949
// If anybody knows of a better way to do this ...
5050
$test = $this;
51+
$routeClass = $this->routeClass;
5152
$this->classMetadata->expects($this->exactly(2))
5253
->method('setIdentifierValue')
53-
->will($this->returnCallback(function ($doc, $id) use ($test) {
54+
->will($this->returnCallback(function ($doc, $id) use ($test, $routeClass) {
5455
static $i = 0;
5556
$expected = array('/test', '/test/foo');
5657

57-
$test->assertInstanceOf($this->routeClass, $doc);
58+
$test->assertInstanceOf($routeClass, $doc);
5859
$test->assertEquals($expected[$i++], $id);
5960
}));
6061

0 commit comments

Comments
 (0)