mirror of
https://github.com/SkillDisplay/PHPToolKit.git
synced 2024-12-26 12:16:10 +01:00
Merge pull request #12 from SkillDisplay/PHPUnitUpgrade
Php unit upgrade
This commit is contained in:
commit
0f4263663b
7 changed files with 11 additions and 3094 deletions
11
.github/workflows/ci.yaml
vendored
11
.github/workflows/ci.yaml
vendored
|
@ -9,7 +9,7 @@ jobs:
|
|||
- name: Install PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.4
|
||||
php-version: 8.2
|
||||
|
||||
- name: Validate composer.json
|
||||
run: composer validate
|
||||
|
@ -19,9 +19,10 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
php-version:
|
||||
- 7.2
|
||||
- 7.3
|
||||
- 7.4
|
||||
- 8.0
|
||||
- 8.1
|
||||
- 8.2
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
@ -42,7 +43,7 @@ jobs:
|
|||
- name: Install PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.4
|
||||
php-version: 8.2
|
||||
|
||||
- name: Get Composer Cache Directory
|
||||
id: composer-cache
|
||||
|
@ -70,7 +71,7 @@ jobs:
|
|||
- name: Install PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.4
|
||||
php-version: 8.2
|
||||
|
||||
- name: Get Composer Cache Directory
|
||||
id: composer-cache
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
/.idea/
|
||||
/vendor/
|
||||
.phpunit.result.cache
|
||||
composer.lock
|
||||
|
|
2894
composer.lock
generated
2894
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue