Skip to content

Commit c1645f4

Browse files
committed
minor #18430 Remove PHPUnit 5.3 references (alamirault)
This PR was merged into the 6.2 branch. Discussion ---------- Remove PHPUnit 5.3 references Symfony 6.0 require `php: >=8.0.2`, phpunit 5.3 require `php: ^5.6 || ^7.0`. So they can't be used together, let's remove unnecessary documentation ! Commits ------- a167521 Remove phpunit 5.3 references
2 parents 979d134 + a167521 commit c1645f4

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

create_framework/unit_testing.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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())

testing/database.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)