[TASK] Update Unit Tests for new version of PHPUnit, drop Unit Tests that match a specific SVG

This commit is contained in:
Florian Weiss 2023-07-06 12:47:42 +02:00
parent 71188fe34c
commit ffd07689c6
5 changed files with 5 additions and 196 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/.idea/
/vendor/
.phpunit.result.cache

View file

@ -40,7 +40,7 @@ class BrandTest extends TestCase
*/
public function instanceCanNotBeCreatedViaConstructor()
{
$this->expectErrorMessage('Call to private SkillDisplay\PHPToolKit\Entity\Brand::__construct() from context \'SkillDisplay\PHPToolKit\Tests\Unit\Entity\BrandTest\'');
$this->expectExceptionMessage('Call to private SkillDisplay\PHPToolKit\Entity\Brand::__construct() from scope SkillDisplay\PHPToolKit\Tests\Unit\Entity\BrandTest');
new Brand();
}

View file

@ -41,7 +41,7 @@ class SkillSetTest extends TestCase
*/
public function instanceCanNotBeCreatedViaConstructor()
{
$this->expectErrorMessage('Call to private SkillDisplay\PHPToolKit\Entity\SkillSet::__construct() from context \'SkillDisplay\PHPToolKit\Tests\Unit\Entity\SkillSetTest\'');
$this->expectExceptionMessage('Call to private SkillDisplay\PHPToolKit\Entity\SkillSet::__construct() from scope SkillDisplay\PHPToolKit\Tests\Unit\Entity\SkillSetTest');
new SkillSet();
}

View file

@ -41,7 +41,7 @@ class SkillTest extends TestCase
*/
public function instanceCanNotBeCreatedViaConstructor()
{
$this->expectErrorMessage('Call to private SkillDisplay\PHPToolKit\Entity\Skill::__construct() from context \'SkillDisplay\PHPToolKit\Tests\Unit\Entity\SkillTest\'');
$this->expectExceptionMessage('Call to private SkillDisplay\PHPToolKit\Entity\Skill::__construct() from scope SkillDisplay\PHPToolKit\Tests\Unit\Entity\SkillTest');
new Skill();
}

File diff suppressed because one or more lines are too long