update to phpunit8

This commit is contained in:
Dominik Liebler
2019-08-17 23:05:15 +02:00
parent 78ffb07d9c
commit a73c253ffc
10 changed files with 321 additions and 263 deletions

View File

@@ -21,11 +21,10 @@ class RegistryTest extends TestCase
$this->assertInstanceOf(stdClass::class, $storedLogger);
}
/**
* @expectedException \InvalidArgumentException
*/
public function testThrowsExceptionWhenTryingToSetInvalidKey()
{
$this->expectException(\InvalidArgumentException::class);
Registry::set('foobar', new stdClass());
}
@@ -35,10 +34,11 @@ class RegistryTest extends TestCase
* injected class may easily be replaced by a mockup
*
* @runInSeparateProcess
* @expectedException \InvalidArgumentException
*/
public function testThrowsExceptionWhenTryingToGetNotSetKey()
{
$this->expectException(\InvalidArgumentException::class);
Registry::get(Registry::LOGGER);
}
}