Skip to content

Commit

Permalink
Replace mockery by phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
usox committed Nov 19, 2024
1 parent 6fc5bd5 commit 56949c0
Show file tree
Hide file tree
Showing 27 changed files with 508 additions and 719 deletions.
31 changes: 21 additions & 10 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(['src', 'tests'])
;
$config = new PhpCsFixer\Config();
$config->setRules(
[
declare(strict_types=1);

return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline', 'keep_multiple_spaces_after_comma' => false],
]
)->setFinder($finder)
'no_unused_imports' => true,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
'imports_order' => ['const', 'class', 'function'],
],
'fully_qualified_strict_types' => [
'import_symbols' => true,
],
'trailing_comma_in_multiline' => [
'after_heredoc' => true,
'elements' => ['array_destructuring', 'arrays', 'parameters', 'arguments'],
],
])
->setFinder(
PhpCsFixer\Finder::create()
->in(['src', 'tests'])
)
;

return $config;
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
"friendsofphp/php-cs-fixer": "^3.0",
"laminas/laminas-diactoros": "^3",
"mikey179/vfsstream": "^1.6",
"mockery/mockery": "^1.4",
"phpstan/phpstan": "^1",
"phpstan/phpstan-mockery": "^1",
"phpstan/phpstan-strict-rules": "^1",
"phpunit/phpunit": "^11",
"rector/rector": "^1"
Expand Down
Loading

0 comments on commit 56949c0

Please sign in to comment.