Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 56949c0

Browse files
committed
Replace mockery by phpunit
1 parent 6fc5bd5 commit 56949c0

27 files changed

+508
-719
lines changed

.php-cs-fixer.dist.php

+21-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
<?php
22

3-
$finder = PhpCsFixer\Finder::create()
4-
->in(['src', 'tests'])
5-
;
6-
$config = new PhpCsFixer\Config();
7-
$config->setRules(
8-
[
3+
declare(strict_types=1);
4+
5+
return (new PhpCsFixer\Config())
6+
->setRules([
97
'@PSR12' => true,
108
'array_syntax' => ['syntax' => 'short'],
119
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline', 'keep_multiple_spaces_after_comma' => false],
12-
]
13-
)->setFinder($finder)
10+
'no_unused_imports' => true,
11+
'ordered_imports' => [
12+
'sort_algorithm' => 'alpha',
13+
'imports_order' => ['const', 'class', 'function'],
14+
],
15+
'fully_qualified_strict_types' => [
16+
'import_symbols' => true,
17+
],
18+
'trailing_comma_in_multiline' => [
19+
'after_heredoc' => true,
20+
'elements' => ['array_destructuring', 'arrays', 'parameters', 'arguments'],
21+
],
22+
])
23+
->setFinder(
24+
PhpCsFixer\Finder::create()
25+
->in(['src', 'tests'])
26+
)
1427
;
15-
16-
return $config;

composer.json

-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@
3535
"friendsofphp/php-cs-fixer": "^3.0",
3636
"laminas/laminas-diactoros": "^3",
3737
"mikey179/vfsstream": "^1.6",
38-
"mockery/mockery": "^1.4",
3938
"phpstan/phpstan": "^1",
40-
"phpstan/phpstan-mockery": "^1",
4139
"phpstan/phpstan-strict-rules": "^1",
4240
"phpunit/phpunit": "^11",
4341
"rector/rector": "^1"

0 commit comments

Comments
 (0)