File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 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::
9999 private function getFrameworkForException($exception)
100100 {
101101 $matcher = $this->createMock(Routing\Matcher\UrlMatcherInterface::class);
102- // use getMock() on PHPUnit 5.3 or below
103- // $matcher = $this->getMock(Routing\Matcher\UrlMatcherInterface::class);
104102
105103 $matcher
106104 ->expects($this->once())
@@ -159,8 +157,6 @@ Response::
159157 public function testControllerResponse()
160158 {
161159 $matcher = $this->createMock(Routing\Matcher\UrlMatcherInterface::class);
162- // use getMock() on PHPUnit 5.3 or below
163- // $matcher = $this->getMock(Routing\Matcher\UrlMatcherInterface::class);
164160
165161 $matcher
166162 ->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::
6161
6262 // Now, mock the repository so it returns the mock of the employee
6363 $employeeRepository = $this->createMock(ObjectRepository::class);
64- // use getMock() on PHPUnit 5.3 or below
65- // $employeeRepository = $this->getMock(ObjectRepository::class);
6664 $employeeRepository->expects($this->any())
6765 ->method('find')
6866 ->willReturn($employee);
@@ -71,8 +69,6 @@ constructor, you can pass a mock object within a test::
7169 // (this is not needed if the class being tested injects the
7270 // repository it uses instead of the entire object manager)
7371 $objectManager = $this->createMock(ObjectManager::class);
74- // use getMock() on PHPUnit 5.3 or below
75- // $objectManager = $this->getMock(ObjectManager::class);
7672 $objectManager->expects($this->any())
7773 ->method('getRepository')
7874 ->willReturn($employeeRepository);
You can’t perform that action at this time.
0 commit comments