Use type hints for TypeError exception
This change allows to replace the Assert::parameterType by a type hint in Ie215179b4631fd9071b257772c5cb193547cb7d7. Change-Id: I399a92d3fac0e0849fe3a403c703fe7d32f51257
This commit is contained in:
1 parent
2c0be6be46
commit
e7ab5faf2f
2 files changed
+4
-4
No files matched your search
@@ -15,14 +15,14 @@ class ULSJsonMessageLoaderTest extends \PHPUnit\Framework\TestCase {
|
||||
public function testGetFilenamesWithBadInput() {
|
||||
$instance = new ULSJsonMessageLoader();
|
||||
|
||||
$this->expectException( \Exception::class );
|
||||
$this->expectException( \TypeError::class );
|
||||
$instance->getFilenames( null );
|
||||
}
|
||||
|
||||
public function testGetMessagesWithBadInput() {
|
||||
$instance = new ULSJsonMessageLoader();
|
||||
|
||||
$this->expectException( \Exception::class );
|
||||
$this->expectException( \TypeError::class );
|
||||
$instance->getMessages( null );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user