File tree 2 files changed +0
-8
lines changed
2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,6 @@ We are now ready to write our first test::
99
99
private function getFrameworkForException($exception)
100
100
{
101
101
$matcher = $this->createMock(Routing\Matcher\UrlMatcherInterface::class);
102
- // use getMock() on PHPUnit 5.3 or below
103
- // $matcher = $this->getMock(Routing\Matcher\UrlMatcherInterface::class);
104
102
105
103
$matcher
106
104
->expects($this->once())
@@ -159,8 +157,6 @@ Response::
159
157
public function testControllerResponse()
160
158
{
161
159
$matcher = $this->createMock(Routing\Matcher\UrlMatcherInterface::class);
162
- // use getMock() on PHPUnit 5.3 or below
163
- // $matcher = $this->getMock(Routing\Matcher\UrlMatcherInterface::class);
164
160
165
161
$matcher
166
162
->expects($this->once())
Original file line number Diff line number Diff line change @@ -61,8 +61,6 @@ constructor, you can pass a mock object within a test::
61
61
62
62
// Now, mock the repository so it returns the mock of the employee
63
63
$employeeRepository = $this->createMock(ObjectRepository::class);
64
- // use getMock() on PHPUnit 5.3 or below
65
- // $employeeRepository = $this->getMock(ObjectRepository::class);
66
64
$employeeRepository->expects($this->any())
67
65
->method('find')
68
66
->willReturn($employee);
@@ -71,8 +69,6 @@ constructor, you can pass a mock object within a test::
71
69
// (this is not needed if the class being tested injects the
72
70
// repository it uses instead of the entire object manager)
73
71
$objectManager = $this->createMock(ObjectManager::class);
74
- // use getMock() on PHPUnit 5.3 or below
75
- // $objectManager = $this->getMock(ObjectManager::class);
76
72
$objectManager->expects($this->any())
77
73
->method('getRepository')
78
74
->willReturn($employeeRepository);
You can’t perform that action at this time.
0 commit comments