Skip to content

Commit f0ed073

Browse files
committed
fix: use "static" to call non-static methods
Signed-off-by: Jack Cherng <[email protected]>
1 parent 125ad65 commit f0ed073

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Renderer/RendererTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testSetOptionsWithResultForIdenticals(): void
7878
*/
7979
public function testSetOptionsWithInvalidResultForIdenticals(): void
8080
{
81-
static::expectException(\InvalidArgumentException::class);
81+
$this->expectException(\InvalidArgumentException::class);
8282

8383
$diffResult = DiffHelper::calculate(
8484
'we are the same',
@@ -153,7 +153,7 @@ public function testHtmlRendererRenderWithResultFromJsonRenderer(): void
153153
*/
154154
public function testTextRendererRenderWithResultFromJsonRenderer(): void
155155
{
156-
static::expectException(UnsupportedFunctionException::class);
156+
$this->expectException(UnsupportedFunctionException::class);
157157

158158
$jsonResult = DiffHelper::calculate('_TEST_MARKER_OLD_', '_TEST_MARKER_NEW_', 'Json');
159159

0 commit comments

Comments
 (0)