Skip to content

Commit ac25355

Browse files
committed
Add comments about BC classes
1 parent 11ce078 commit ac25355

File tree

8 files changed

+40
-16
lines changed

8 files changed

+40
-16
lines changed

tests/BC/AccessableTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ class AccessableTest extends TestCase
1515
{
1616
/**
1717
* This test will test a custom implementation of the Accessable interface.
18-
* DO NOT CHANGE THIS!
19-
* Changes are only allowed by increasing the major version number.
2018
*/
2119
public function testBcForAccessableInterface(): void
2220
{
21+
/**
22+
* DO NOT CHANGE THIS CLASS!
23+
*
24+
* This anonymous class represents an implementation in user code
25+
*/
2326
$class = new class () implements Accessable {
2427
/**
2528
* Get a value by a key

tests/BC/ElementTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,18 @@ class ElementTest extends TestCase
1717
{
1818
/**
1919
* This test will test a custom implementation of the Element interface.
20-
* DO NOT CHANGE THIS!
21-
* Changes are only allowed by increasing the major version number.
2220
*/
2321
public function testBcForElementInterface(): void
2422
{
2523
$data = null;
2624
$manager = $this->createMock(Manager::class);
2725
$parent = $this->createMock(Accessable::class);
2826

27+
/**
28+
* DO NOT CHANGE THIS CLASS!
29+
*
30+
* This anonymous class represents an implementation in user code
31+
*/
2932
$class = new class ($data, $manager, $parent) implements Element {
3033
/**
3134
* Sets the manager and parent

tests/BC/Exception/ExceptionTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ class ExceptionTest extends TestCase
1515
{
1616
/**
1717
* This test will test a custom implementation of the Exception interface.
18-
* DO NOT CHANGE THIS!
19-
* Changes are only allowed by increasing the major version number.
2018
*/
2119
public function testBcForExceptionInterface(): void
2220
{
21+
/**
22+
* DO NOT CHANGE THIS CLASS!
23+
*
24+
* This anonymous class represents an implementation in user code
25+
*/
2326
$class = new class () implements Exception {};
2427

2528
$this->assertInstanceOf(Exception::class, $class);

tests/BC/FactoryTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ class FactoryTest extends TestCase
1515
{
1616
/**
1717
* This test will test a custom implementation of the Factory interface.
18-
* DO NOT CHANGE THIS!
19-
* Changes are only allowed by increasing the major version number.
2018
*/
2119
public function testBcForFactoryInterface(): void
2220
{
21+
/**
22+
* DO NOT CHANGE THIS CLASS!
23+
*
24+
* This anonymous class represents an implementation in user code
25+
*/
2326
$class = new class () implements Factory {
2427
/**
2528
* Create a new instance of a class

tests/BC/Input/InputTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ class InputTest extends TestCase
1515
{
1616
/**
1717
* This test will test a custom implementation of the Input interface.
18-
* DO NOT CHANGE THIS!
19-
* Changes are only allowed by increasing the major version number.
2018
*/
2119
public function testBcForInputInterface(): void
2220
{
21+
/**
22+
* DO NOT CHANGE THIS CLASS!
23+
*
24+
* This anonymous class represents an implementation in user code
25+
*/
2326
$class = new class () implements Input {
2427
/**
2528
* Get the input as simple object

tests/BC/Input/RequestInputTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ class RequestInputTest extends TestCase
1515
{
1616
/**
1717
* This test will test a custom implementation of the RequestInput interface.
18-
* DO NOT CHANGE THIS!
19-
* Changes are only allowed by increasing the major version number.
2018
*/
2119
public function testBcForRequestInputInterface(): void
2220
{
21+
/**
22+
* DO NOT CHANGE THIS CLASS!
23+
*
24+
* This anonymous class represents an implementation in user code
25+
*/
2326
$class = new class () implements RequestInput {};
2427

2528
$this->assertInstanceOf(RequestInput::class, $class);

tests/BC/ManagerTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ class ManagerTest extends TestCase
1616
{
1717
/**
1818
* This test will test a custom implementation of the Manager interface.
19-
* DO NOT CHANGE THIS!
20-
* Changes are only allowed by increasing the major version number.
2119
*/
2220
public function testBcForManagerInterface(): void
2321
{
22+
/**
23+
* DO NOT CHANGE THIS CLASS!
24+
*
25+
* This anonymous class represents an implementation in user code
26+
*/
2427
$class = new class () implements Manager {
2528
/**
2629
* Parse the input

tests/BC/Serializer/SerializerTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ class SerializerTest extends TestCase
1616
{
1717
/**
1818
* This test will test a custom implementation of the Serializer interface.
19-
* DO NOT CHANGE THIS!
20-
* Changes are only allowed by increasing the major version number.
2119
*/
2220
public function testBcForSerializerInterface(): void
2321
{
22+
/**
23+
* DO NOT CHANGE THIS CLASS!
24+
*
25+
* This anonymous class represents an implementation in user code
26+
*/
2427
$class = new class () implements Serializer {
2528
/**
2629
* Serialize data

0 commit comments

Comments
 (0)