Skip to content

Commit 1ec8d7d

Browse files
Do not use --strict option in end-to-end tests
1 parent 7fcf0c0 commit 1ec8d7d

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

tests/Regression/GitHub/1348.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (defined('HHVM_VERSION'))
99
<?php
1010

1111
$_SERVER['argv'][1] = '--no-configuration';
12-
$_SERVER['argv'][] = '--strict';
12+
$_SERVER['argv'][] = '--report-useless-tests';
1313
$_SERVER['argv'][] = '--process-isolation';
1414
$_SERVER['argv'][] = 'Issue1348Test';
1515
$_SERVER['argv'][] = __DIR__ . '/1348/Issue1348Test.php';
@@ -32,4 +32,4 @@ There was 1 error:
3232
PHPUnit_Framework_Exception: STDERR works as usual.
3333

3434
FAILURES!
35-
Tests: 2, Assertions: 1, Errors: 1.
35+
Tests: 2, Assertions: 1, Errors: 1.

tests/Regression/GitHub/445.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ GH-455: expectOutputString not working in strict mode
44
<?php
55

66
$_SERVER['argv'][1] = '--no-configuration';
7-
$_SERVER['argv'][2] = '--strict';
7+
$_SERVER['argv'][2] = '--disallow-test-output';
88
$_SERVER['argv'][3] = 'Issue445Test';
99
$_SERVER['argv'][4] = dirname(__FILE__).'/445/Issue445Test.php';
1010

tests/TextUI/strict-incomplete.phpt renamed to tests/TextUI/report-useless-tests-incomplete.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--TEST--
2-
phpunit --strict IncompleteTest ../_files/IncompleteTest.php
2+
phpunit --report-useless-tests IncompleteTest ../_files/IncompleteTest.php
33
--FILE--
44
<?php
55
$_SERVER['argv'][1] = '--no-configuration';
6-
$_SERVER['argv'][2] = '--strict';
6+
$_SERVER['argv'][2] = '--report-useless-tests';
77
$_SERVER['argv'][3] = 'IncompleteTest';
88
$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/IncompleteTest.php';
99

tests/TextUI/strict-isolation.phpt renamed to tests/TextUI/report-useless-tests-isolation.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--TEST--
2-
phpunit --strict --process-isolation IncompleteTest ../_files/IncompleteTest.php
2+
phpunit --report-useless-tests --process-isolation IncompleteTest ../_files/IncompleteTest.php
33
--FILE--
44
<?php
55
$_SERVER['argv'][1] = '--no-configuration';
6-
$_SERVER['argv'][2] = '--strict';
6+
$_SERVER['argv'][2] = '--report-useless-tests';
77
$_SERVER['argv'][3] = '--process-isolation';
88
$_SERVER['argv'][4] = 'NothingTest';
99
$_SERVER['argv'][5] = dirname(dirname(__FILE__)) . '/_files/NothingTest.php';

tests/TextUI/strict.phpt renamed to tests/TextUI/report-useless-tests.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--TEST--
2-
phpunit --strict NothingTest ../_files/NothingTest.php
2+
phpunit --report-useless-tests NothingTest ../_files/NothingTest.php
33
--FILE--
44
<?php
55
$_SERVER['argv'][1] = '--no-configuration';
6-
$_SERVER['argv'][2] = '--strict';
6+
$_SERVER['argv'][2] = '--report-useless-tests';
77
$_SERVER['argv'][3] = 'NothingTest';
88
$_SERVER['argv'][4] = dirname(dirname(__FILE__)) . '/_files/NothingTest.php';
99

0 commit comments

Comments
 (0)