Skip to content

Commit 2cebaa5

Browse files
committed
add support for Nette Tester (extension .phpt)
1 parent 6c8a142 commit 2cebaa5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ For colored output install the suggested package `jakub-onderka/php-console-high
2424
- `-p <php>` Specify PHP-CGI executable to run (default: 'php').
2525
- `-s, --short` Set short_open_tag to On (default: Off).
2626
- `-a, --asp` Set asp_tags to On (default: Off).
27-
- `-e <ext>` Check only files with selected extensions separated by comma. (default: php,php3,php4,php5,phtml)
27+
- `-e <ext>` Check only files with selected extensions separated by comma. (default: php,php3,php4,php5,phtml,phpt)
2828
- `--exclude` Exclude a file or directory. If you want exclude multiple items, use multiple exclude parameters.
2929
- `-j <num>` Run <num> jobs in parallel (default: 10).
3030
- `--colors` Force enable colors in console output.

parallel-lint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function showOptions()
2424
-s, --short Set short_open_tag to On (default: Off).
2525
-a, -asp Set asp_tags to On (default: Off).
2626
-e <ext> Check only files with selected extensions separated by comma.
27-
(default: php,php3,php4,php5,phtml)
27+
(default: php,php3,php4,php5,phtml,phpt)
2828
--exclude Exclude a file or directory. If you want exclude multiple items,
2929
use multiple exclude parameters.
3030
-j <num> Run <num> jobs in parallel (default: 10).

src/Settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class Settings
6868
* If path contains directory, only file with these extensions are checked
6969
* @var array
7070
*/
71-
public $extensions = array('php', 'phtml', 'php3', 'php4', 'php5');
71+
public $extensions = array('php', 'phtml', 'php3', 'php4', 'php5', 'phpt');
7272

7373
/**
7474
* Array of file or directories to check

tests/Settings.parseArguments.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SettingsParseArgumentsTest extends Tester\TestCase
2222
$expectedSettings->shortTag = false;
2323
$expectedSettings->aspTags = false;
2424
$expectedSettings->parallelJobs = 10;
25-
$expectedSettings->extensions = array('php', 'phtml', 'php3', 'php4', 'php5');
25+
$expectedSettings->extensions = array('php', 'phtml', 'php3', 'php4', 'php5', 'phpt');
2626
$expectedSettings->paths = array('.');
2727
$expectedSettings->excluded = array();
2828
$expectedSettings->colors = Settings::AUTODETECT;
@@ -52,7 +52,7 @@ class SettingsParseArgumentsTest extends Tester\TestCase
5252
$expectedSettings->shortTag = false;
5353
$expectedSettings->aspTags = false;
5454
$expectedSettings->parallelJobs = 10;
55-
$expectedSettings->extensions = array('php', 'phtml', 'php3', 'php4', 'php5');
55+
$expectedSettings->extensions = array('php', 'phtml', 'php3', 'php4', 'php5', 'phpt');
5656
$expectedSettings->paths = array('.');
5757
$expectedSettings->excluded = array('vendor');
5858
$expectedSettings->colors = Settings::DISABLED;

0 commit comments

Comments
 (0)