Skip to content

Commit e5138ca

Browse files
Rename methods
1 parent 81cfaa6 commit e5138ca

26 files changed

+37
-37
lines changed

ChangeLog-12.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ All notable changes of the PHPUnit 12.1 release series are documented in this fi
88

99
* [#6118](https://github.com/sebastianbergmann/phpunit/pull/6118): `expectErrorLog()` for expecting `error_log()` output
1010
* [#6126](https://github.com/sebastianbergmann/phpunit/pull/6126): Attribute `#[WithEnvironmentVariable]` for setting an environment variable for the duration of a test
11-
* The `AfterTestMethodCalled`, `AfterTestMethodErrored`, `AfterTestMethodFinished`, `BeforeTestMethodCalled`, `BeforeTestMethodErrored`, `BeforeTestMethodFinished`, `PostConditionCalled`, `PostConditionErrored`, `PostConditionFinished`, `PreConditionCalled`, `PreConditionErrored`, and `PreConditionFinished` event value objects now have `test()` method that returns a value object representing the test method for which the hook method was called
11+
* The `AfterTestMethodCalled`, `AfterTestMethodErrored`, `AfterTestMethodFinished`, `BeforeTestMethodCalled`, `BeforeTestMethodErrored`, `BeforeTestMethodFinished`, `PostConditionCalled`, `PostConditionErrored`, `PostConditionFinished`, `PreConditionCalled`, `PreConditionErrored`, and `PreConditionFinished` event value objects now have a method named `testMethod()` that returns a value object representing the test method for which the hook method was called
1212

1313
### Changed
1414

src/Event/Events/Test/HookMethod/AfterTestMethodCalled.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function telemetryInfo(): Telemetry\Info
3737
return $this->telemetryInfo;
3838
}
3939

40-
public function test(): Code\TestMethod
40+
public function testMethod(): Code\TestMethod
4141
{
4242
return $this->test;
4343
}

src/Event/Events/Test/HookMethod/AfterTestMethodErrored.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function telemetryInfo(): Telemetry\Info
4141
return $this->telemetryInfo;
4242
}
4343

44-
public function test(): Code\TestMethod
44+
public function testMethod(): Code\TestMethod
4545
{
4646
return $this->test;
4747
}

src/Event/Events/Test/HookMethod/AfterTestMethodFinished.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function telemetryInfo(): Telemetry\Info
4242
return $this->telemetryInfo;
4343
}
4444

45-
public function test(): Code\TestMethod
45+
public function testMethod(): Code\TestMethod
4646
{
4747
return $this->test;
4848
}

src/Event/Events/Test/HookMethod/BeforeTestMethodCalled.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function telemetryInfo(): Telemetry\Info
3737
return $this->telemetryInfo;
3838
}
3939

40-
public function test(): Code\TestMethod
40+
public function testMethod(): Code\TestMethod
4141
{
4242
return $this->test;
4343
}

src/Event/Events/Test/HookMethod/BeforeTestMethodErrored.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function telemetryInfo(): Telemetry\Info
4141
return $this->telemetryInfo;
4242
}
4343

44-
public function test(): Code\TestMethod
44+
public function testMethod(): Code\TestMethod
4545
{
4646
return $this->test;
4747
}

src/Event/Events/Test/HookMethod/BeforeTestMethodFinished.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function telemetryInfo(): Telemetry\Info
4242
return $this->telemetryInfo;
4343
}
4444

45-
public function test(): Code\TestMethod
45+
public function testMethod(): Code\TestMethod
4646
{
4747
return $this->test;
4848
}

src/Event/Events/Test/HookMethod/PostConditionCalled.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function telemetryInfo(): Telemetry\Info
3737
return $this->telemetryInfo;
3838
}
3939

40-
public function test(): Code\TestMethod
40+
public function testMethod(): Code\TestMethod
4141
{
4242
return $this->test;
4343
}

src/Event/Events/Test/HookMethod/PostConditionErrored.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function telemetryInfo(): Telemetry\Info
4141
return $this->telemetryInfo;
4242
}
4343

44-
public function test(): Code\TestMethod
44+
public function testMethod(): Code\TestMethod
4545
{
4646
return $this->test;
4747
}

src/Event/Events/Test/HookMethod/PostConditionFinished.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function telemetryInfo(): Telemetry\Info
4242
return $this->telemetryInfo;
4343
}
4444

45-
public function test(): Code\TestMethod
45+
public function testMethod(): Code\TestMethod
4646
{
4747
return $this->test;
4848
}

0 commit comments

Comments
 (0)