mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
update to phpunit8
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user