Skip to content

Commit

Permalink
Update phpunit-10. (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Feb 22, 2023
1 parent 3ebfef5 commit b1165ea
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 20 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"require": {
"php": "^8.1",
"foxy/foxy": "^1.2",
"yiisoft/assets": "^3.0",
"yiisoft/assets": "^4.0",
"yiisoft/files": "^2.0"
},
"require-dev": {
"maglnet/composer-require-checker": "^4.3",
"phpunit/phpunit": "^9.5",
"roave/infection-static-analysis-plugin": "^1.28",
"phpunit/phpunit": "^10.0",
"roave/infection-static-analysis-plugin": "^1.29",
"vimeo/psalm": "^5.6"
},
"autoload": {
Expand Down
15 changes: 2 additions & 13 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>

<phpunit
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
stopOnFailure="false"
verbose="true"
>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache">
<php>
<ini name="error_reporting" value="-1" />
<ini name="error_reporting" value="-1"/>
</php>

<coverage>
<include>
<directory>./src</directory>
Expand All @@ -21,7 +11,6 @@
<directory>./vendor</directory>
</exclude>
</coverage>

<testsuites>
<testsuite name="Template">
<directory>./tests</directory>
Expand Down
2 changes: 2 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0"?>
<psalm
errorLevel="1"
findUnusedBaselineEntry="true"
findUnusedCode="false"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
Expand Down
2 changes: 1 addition & 1 deletion tests/CdnAssetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class CdnAssetTest extends TestCase
use TestTrait;

/**
* @dataProvider \Yii\BootstrapIcons\Asset\Tests\Provider\CdnAssetProvider::assetBundles()
* @dataProvider \Yii\BootstrapIcons\Asset\Tests\Provider\CdnAssetProvider::assetBundles
*
* @psalm-suppress InvalidStringClass
* @psalm-suppress MixedArrayOffset
Expand Down
2 changes: 1 addition & 1 deletion tests/NpmAssetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class NpmAssetTest extends TestCase
use TestTrait;

/**
* @dataProvider \Yii\BootstrapIcons\Asset\Tests\Provider\NpmAssetProvider::assetBundles()
* @dataProvider \Yii\BootstrapIcons\Asset\Tests\Provider\NpmAssetProvider::assetBundles
*
* @throws InvalidConfigException
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Provider/CdnAssetProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class CdnAssetProvider
/**
* @return array array of asset bundles.
*/
public function assetBundles(): array
public static function assetBundles(): array
{
return [
[
Expand Down
2 changes: 1 addition & 1 deletion tests/Provider/NpmAssetProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class NpmAssetProvider
/**
* @return array array of asset bundles.
*/
public function assetBundles(): array
public static function assetBundles(): array
{
return [
[
Expand Down

0 comments on commit b1165ea

Please sign in to comment.