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:
Fomafix
2019-10-30 17:17:32 +01:00
committed by jenkins-bot
parent 2c0be6be46
commit e7ab5faf2f
2 changed files with 4 additions and 4 deletions

View File

@@ -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 );
}