upgraded to phpunit 8 (#1155)

This commit is contained in:
Kevin Papst
2019-10-24 17:35:05 +02:00
committed by GitHub
parent e91e4ff430
commit b0f83291ee
81 changed files with 421 additions and 463 deletions

View File

@@ -25,12 +25,11 @@ class TimesheetSubscriberTest extends TestCase
$this->assertTrue(in_array(Events::onFlush, $events));
}
/**
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Invalid TimesheetCalculator implementation given. Expected CalculatorInterface but received stdClass
*/
public function testConstructThrowsExceptionOnInvalidParam()
{
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Invalid TimesheetCalculator implementation given. Expected CalculatorInterface but received stdClass');
new TimesheetSubscriber([new \stdClass()]);
}
}