Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
add support for Nette Tester (extension .phpt)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzk authored and JakubOnderka committed Aug 12, 2018
1 parent 04fbd3f commit 3e8b286
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ For colored output install the suggested package `jakub-onderka/php-console-high
- `-p <php>` Specify PHP-CGI executable to run (default: 'php').
- `-s, --short` Set short_open_tag to On (default: Off).
- `-a, --asp` Set asp_tags to On (default: Off).
- `-e <ext>` Check only files with selected extensions separated by comma. (default: php,php3,php4,php5,phtml)
- `-e <ext>` Check only files with selected extensions separated by comma. (default: php,php3,php4,php5,phtml,phpt)
- `--exclude` Exclude a file or directory. If you want exclude multiple items, use multiple exclude parameters.
- `-j <num>` Run <num> jobs in parallel (default: 10).
- `--colors` Force enable colors in console output.
Expand Down
2 changes: 1 addition & 1 deletion parallel-lint.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function showOptions()
-s, --short Set short_open_tag to On (default: Off).
-a, -asp Set asp_tags to On (default: Off).
-e <ext> Check only files with selected extensions separated by comma.
(default: php,php3,php4,php5,phtml)
(default: php,php3,php4,php5,phtml,phpt)
--exclude Exclude a file or directory. If you want exclude multiple items,
use multiple exclude parameters.
-j <num> Run <num> jobs in parallel (default: 10).
Expand Down
2 changes: 1 addition & 1 deletion src/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Settings
* If path contains directory, only file with these extensions are checked
* @var array
*/
public $extensions = array('php', 'phtml', 'php3', 'php4', 'php5');
public $extensions = array('php', 'phtml', 'php3', 'php4', 'php5', 'phpt');

/**
* Array of file or directories to check
Expand Down
4 changes: 2 additions & 2 deletions tests/Settings.parseArguments.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SettingsParseArgumentsTest extends Tester\TestCase
$expectedSettings->shortTag = false;
$expectedSettings->aspTags = false;
$expectedSettings->parallelJobs = 10;
$expectedSettings->extensions = array('php', 'phtml', 'php3', 'php4', 'php5');
$expectedSettings->extensions = array('php', 'phtml', 'php3', 'php4', 'php5', 'phpt');
$expectedSettings->paths = array('.');
$expectedSettings->excluded = array();
$expectedSettings->colors = Settings::AUTODETECT;
Expand Down Expand Up @@ -52,7 +52,7 @@ class SettingsParseArgumentsTest extends Tester\TestCase
$expectedSettings->shortTag = false;
$expectedSettings->aspTags = false;
$expectedSettings->parallelJobs = 10;
$expectedSettings->extensions = array('php', 'phtml', 'php3', 'php4', 'php5');
$expectedSettings->extensions = array('php', 'phtml', 'php3', 'php4', 'php5', 'phpt');
$expectedSettings->paths = array('.');
$expectedSettings->excluded = array('vendor');
$expectedSettings->colors = Settings::DISABLED;
Expand Down

0 comments on commit 3e8b286

Please sign in to comment.