diff --git a/composer.json b/composer.json index 25c3c84..0ab0835 100644 --- a/composer.json +++ b/composer.json @@ -6,11 +6,8 @@ "minimum-stability": "stable", "scripts": { "test": "./vendor/bin/pest --parallel", - "test:watch": "composer test -- --watch", "test:coverage": "XDEBUG_MODE=coverage composer test -- --coverage --min=97.4", - "test:coverage:watch": "composer test:coverage -- --watch", "test:type-coverage": "composer test -- --type-coverage --min=100", - "test:type-coverage:watch": "composer test:type-coverage -- --watch", "phpstan": "./vendor/bin/phpstan --memory-limit=2G", "pint": "./vendor/bin/pint" }, @@ -33,12 +30,12 @@ }, "require-dev": { "laravel/pint": "^1.16", - "pestphp/pest": "^3.7.4", - "pestphp/pest-plugin-type-coverage": "^3.2.3", - "pestphp/pest-plugin-watch": "^3.0.0", + "pestphp/pest": "^5.1.3", + "pestphp/pest-plugin-type-coverage": "^5.0.2", "phpstan/phpstan": "^2.1.2", "phpstan/phpstan-strict-rules": "^2.0.3", - "phpstan/extension-installer": "^1.4" + "phpstan/extension-installer": "^1.4", + "pestphp/pest-plugin-phpstan": "^5.2" }, "config": { "allow-plugins": { diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1d1b842..a3c4930 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,151 +1,7 @@ parameters: ignoreErrors: - - - rawMessage: 'Call to method toBe() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 11 - path: tests/Unit/ArrayIteratorTest.php - - - - rawMessage: 'Call to method toBeTrue() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/ArrayIteratorTest.php - - - - rawMessage: 'Call to method with() of internal class Pest\PendingCalls\TestCall from outside its root namespace Pest.' - identifier: method.internalClass - count: 5 - path: tests/Unit/ArrayIteratorTest.php - - - - rawMessage: 'Call to method toBe() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 26 - path: tests/Unit/ArraySectionIteratorTest.php - - - - rawMessage: 'Call to method toBeFalse() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/ArraySectionIteratorTest.php - - - - rawMessage: 'Call to method toBeJson() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 2 - path: tests/Unit/ArraySectionIteratorTest.php - - - - rawMessage: 'Call to method toBeTrue() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/ArraySectionIteratorTest.php - - - - rawMessage: 'Call to method toHaveKeys() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/ArraySectionIteratorTest.php - - - - rawMessage: 'Call to method with() of internal class Pest\PendingCalls\TestCall from outside its root namespace Pest.' - identifier: method.internalClass - count: 11 - path: tests/Unit/ArraySectionIteratorTest.php - - - - rawMessage: 'Call to method toBe() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/FullTextTest.php - - - - rawMessage: 'Call to method toBeGreaterThan() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/FullTextTest.php - - - - rawMessage: 'Call to method with() of internal class Pest\PendingCalls\TestCall from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/FullTextTest.php - - - - rawMessage: 'Call to method throws() of internal class Pest\PendingCalls\TestCall from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method toBeArray() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method toBeFalse() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method toBeNull() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method toBeObject() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method toBeTrue() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method with() of internal class Pest\PendingCalls\TestCall from outside its root namespace Pest.' - identifier: method.internalClass - count: 6 - path: tests/Unit/JsonDecoderTest.php - - - - rawMessage: 'Call to method toBe() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 8 - path: tests/Unit/StringableTest.php - - - - rawMessage: 'Call to method toBeTrue() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 3 - path: tests/Unit/StringableTest.php - - rawMessage: 'Parameter #1 $string of static method Artemeon\Support\StringUtil::of() expects string, null given.' identifier: argument.type count: 1 path: tests/Unit/StringableTest.php - - - - rawMessage: 'Call to method toBe() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/TimerTest.php - - - - rawMessage: 'Call to method toBeLessThan() of internal class Pest\Mixins\Expectation from outside its root namespace Pest.' - identifier: method.internalClass - count: 2 - path: tests/Unit/TimerTest.php - - - - rawMessage: 'Call to method with() of internal class Pest\PendingCalls\TestCall from outside its root namespace Pest.' - identifier: method.internalClass - count: 1 - path: tests/Unit/TimerTest.php diff --git a/phpunit.xml b/phpunit.xml index 82f73f0..4bfac5b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,6 +1,6 @@