Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit b05cd8b

Browse files
committed
Switch MiddlewareNotCallableExceptionTest assertions to be invoked on instance for consistency
1 parent 6073ca2 commit b05cd8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Exception/MiddlewareNotCallableExceptionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ public function testFromMiddlewareName()
1919
$middlewareName = uniqid('middlewareName', true);
2020
$exception = MiddlewareNotCallableException::fromMiddlewareName($middlewareName);
2121

22-
self::assertInstanceOf(MiddlewareNotCallableException::class, $exception);
23-
self::assertSame('Cannot dispatch middleware ' . $middlewareName, $exception->getMessage());
24-
self::assertSame($middlewareName, $exception->toMiddlewareName());
22+
$this->assertInstanceOf(MiddlewareNotCallableException::class, $exception);
23+
$this->assertSame('Cannot dispatch middleware ' . $middlewareName, $exception->getMessage());
24+
$this->assertSame($middlewareName, $exception->toMiddlewareName());
2525
}
2626

2727
public function testToMiddlewareNameWhenNotSet()
2828
{
2929
$exception = new MiddlewareNotCallableException();
30-
self::assertSame('', $exception->toMiddlewareName());
30+
$this->assertSame('', $exception->toMiddlewareName());
3131
}
3232
}

0 commit comments

Comments
 (0)