Skip to content

Commit

Permalink
Fix code formatting and add new composer command: run-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
PoLaKoSz committed Jul 26, 2019
1 parent dd03ed4 commit c019aa4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ var_dump( $movies );
- `$ composer run-i-tests`: runs only the integration tests (saved webpage parsing)
- `$ composer run-r-tests`: runs only the regression tests (to detect HTML DOM changes in the endpoints - downloads webpage(s) from Port.hu and after try to parse them)
- `$ composer run-u-tests`: runs only the unit tests

## Code formatting

Please use the `$ composer run-tidy` command before every commit to make sure the source code formatted properly.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"run-all-tests": ".\\vendor\\bin\\phpunit --bootstrap .\\vendor\\autoload.php --testdox .\\tests\\",
"run-i-tests": ".\\vendor\\bin\\phpunit --bootstrap .\\vendor\\autoload.php --testdox .\\tests\\Integration",
"run-r-tests": ".\\vendor\\bin\\phpunit --bootstrap .\\vendor\\autoload.php --testdox .\\tests\\Regression",
"run-u-tests": ".\\vendor\\bin\\phpunit --bootstrap .\\vendor\\autoload.php --testdox .\\tests\\Unit"
"run-u-tests": ".\\vendor\\bin\\phpunit --bootstrap .\\vendor\\autoload.php --testdox .\\tests\\Unit",

"run-tidy": ".\\vendor\\bin\\phpcbf --ignore=.\\tests\\Integration\\StaticResources\\*,vendor\\* --extensions=php ./ --standard=PSR2"
}
}
2 changes: 1 addition & 1 deletion tests/Integration/Parsers/MoviePage/WithoutPosterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class WithoutPosterTest extends MoviePageParserBase
{
public function __construct()
{
{
$expectedModel = new WithoutPoster();

parent::__construct('visko', $expectedModel);
Expand Down

0 comments on commit c019aa4

Please sign in to comment.