upgraded to phpunit 8 (#1155)
This commit is contained in:
@@ -30,12 +30,11 @@ class ActivityMetaTest extends AbstractMetaEntityTest
|
||||
return new ActivityMeta();
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \InvalidArgumentException
|
||||
* @expectedExceptionMessage Expected instanceof Activity, received "App\Entity\Timesheet"
|
||||
*/
|
||||
public function testSetEntityThrowsException()
|
||||
{
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage('Expected instanceof Activity, received "App\Entity\Timesheet"');
|
||||
|
||||
$sut = new ActivityMeta();
|
||||
$sut->setEntity(new Timesheet());
|
||||
}
|
||||
|
||||
@@ -30,12 +30,11 @@ class CustomerMetaTest extends AbstractMetaEntityTest
|
||||
return new CustomerMeta();
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \InvalidArgumentException
|
||||
* @expectedExceptionMessage Expected instanceof Customer, received "App\Entity\Activity"
|
||||
*/
|
||||
public function testSetEntityThrowsException()
|
||||
{
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage('Expected instanceof Customer, received "App\Entity\Activity"');
|
||||
|
||||
$sut = new CustomerMeta();
|
||||
$sut->setEntity(new Activity());
|
||||
}
|
||||
|
||||
@@ -30,12 +30,11 @@ class ProjectMetaTest extends AbstractMetaEntityTest
|
||||
return new ProjectMeta();
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \InvalidArgumentException
|
||||
* @expectedExceptionMessage Expected instanceof Project, received "App\Entity\Customer"
|
||||
*/
|
||||
public function testSetEntityThrowsException()
|
||||
{
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage('Expected instanceof Project, received "App\Entity\Customer"');
|
||||
|
||||
$sut = new ProjectMeta();
|
||||
$sut->setEntity(new Customer());
|
||||
}
|
||||
|
||||
@@ -30,12 +30,11 @@ class TimesheetMetaTest extends AbstractMetaEntityTest
|
||||
return new TimesheetMeta();
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \InvalidArgumentException
|
||||
* @expectedExceptionMessage Expected instanceof Timesheet, received "App\Entity\Project"
|
||||
*/
|
||||
public function testSetEntityThrowsException()
|
||||
{
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
$this->expectExceptionMessage('Expected instanceof Timesheet, received "App\Entity\Project"');
|
||||
|
||||
$sut = new TimesheetMeta();
|
||||
$sut->setEntity(new Project());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user