Skip to content

Commit 99a00db

Browse files
committed
wip
1 parent c1c501e commit 99a00db

File tree

3 files changed

+44
-6
lines changed

3 files changed

+44
-6
lines changed

.php_cs.dist

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
$finder = Symfony\Component\Finder\Finder::create()
4+
->in([
5+
__DIR__ . '/src',
6+
__DIR__ . '/tests',
7+
])
8+
->name('*.php')
9+
->notName('*.blade.php')
10+
->ignoreDotFiles(true)
11+
->ignoreVCS(true);
12+
13+
return PhpCsFixer\Config::create()
14+
->setRules([
15+
'@PSR2' => true,
16+
'array_syntax' => ['syntax' => 'short'],
17+
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
18+
'no_unused_imports' => true,
19+
'not_operator_with_successor_space' => true,
20+
'trailing_comma_in_multiline_array' => true,
21+
'phpdoc_scalar' => true,
22+
'unary_operator_spaces' => true,
23+
'binary_operator_spaces' => true,
24+
'blank_line_before_statement' => [
25+
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
26+
],
27+
'phpdoc_single_line_var_spacing' => true,
28+
'phpdoc_var_without_name' => true,
29+
'class_attributes_separation' => [
30+
'elements' => [
31+
'method',
32+
],
33+
],
34+
'method_argument_space' => [
35+
'on_multiline' => 'ensure_fully_multiline',
36+
'keep_multiple_spaces_after_comma' => true,
37+
],
38+
'single_trait_insert_per_statement' => true,
39+
])
40+
->setFinder($finder);

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Automatically rerun PHPUnit tests when source code changes
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/phpunit-watcher.svg?style=flat-square)](https://packagist.org/packages/spatie/phpunit-watcher)
4-
[![Build Status](https://img.shields.io/travis/spatie/phpunit-watcher/master.svg?style=flat-square)](https://travis-ci.org/spatie/phpunit-watcher)
5-
[![Quality Score](https://img.shields.io/scrutinizer/g/spatie/phpunit-watcher.svg?style=flat-square)](https://scrutinizer-ci.com/g/spatie/phpunit-watcher)
6-
[![StyleCI](https://styleci.io/repos/98163923/shield?branch=master)](https://styleci.io/repos/98163923)
4+
![Tests](https://github.com/spatie/phpunit-watcher/workflows/Tests/badge.svg)
75
[![Total Downloads](https://img.shields.io/packagist/dt/spatie/phpunit-watcher.svg?style=flat-square)](https://packagist.org/packages/spatie/phpunit-watcher)
86

97
Wouldn't it be great if your PHPUnit tests would be automatically rerun whenever you change some code? This package can do exactly that.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"php": "^7.2 | ^8.0",
2020
"clue/stdio-react": "^2.0",
2121
"jolicode/jolinotif": "^2.0",
22-
"symfony/console": "^4.0|^5.0",
23-
"symfony/process": "^4.0|^5.0",
24-
"symfony/yaml": "^4.0|^5.0",
22+
"symfony/console": "^5.0",
23+
"symfony/process": "^5.0",
24+
"symfony/yaml": "^5.0",
2525
"yosymfony/resource-watcher": "^2.0"
2626
},
2727
"conflict": {

0 commit comments

Comments
 (0)