upgraded to phpunit 8 (#1155)
This commit is contained in:
@@ -102,12 +102,11 @@ class TimesheetConfigurationTest extends TestCase
|
||||
$this->assertEquals(false, $sut->find('timesheet.rules.allow_future_times'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \InvalidArgumentException
|
||||
* @expectedExceptionMessage Unknown config: foo
|
||||
*/
|
||||
public function testUnknownConfigAreNotImportedAndFindingThemThrowsException()
|
||||
{
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage('Unknown config: foo');
|
||||
|
||||
$sut = $this->getSut($this->getDefaultSettings(), [
|
||||
(new Configuration())->setName('timesheet.foo')->setValue('hello'),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user