-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move logger and printer tests together; nicer ARGV handling
- Loading branch information
1 parent
7f73fea
commit 0395f41
Showing
46 changed files
with
300 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
tests/end-to-end/depends-multiple-parameter-with-isolation.phpt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
tests/end-to-end/loggers/depends-as-parameter-with-isolation.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
phpunit --process-isolation StackTest _files/StackTest.php | ||
--FILE-- | ||
<?php | ||
$arguments = [ | ||
'--no-configuration', | ||
'--process-isolation', | ||
'StackTest', | ||
\realpath(__DIR__ . '/_files/StackTest.php'), | ||
]; | ||
\array_splice($_SERVER['argv'], 1, count($arguments), $arguments); | ||
|
||
require __DIR__ . '/../../bootstrap.php'; | ||
PHPUnit\TextUI\Command::main(); | ||
--EXPECTF-- | ||
PHPUnit %s by Sebastian Bergmann and contributors. | ||
|
||
.. 2 / 2 (100%) | ||
|
||
Time: %s, Memory: %s | ||
|
||
OK (2 tests, 5 assertions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--TEST-- | ||
phpunit StackTest _files/StackTest.php | ||
--FILE-- | ||
<?php | ||
$arguments = [ | ||
'--no-configuration', | ||
'StackTest', | ||
\realpath(__DIR__ . '/_files/StackTest.php'), | ||
]; | ||
\array_splice($_SERVER['argv'], 1, count($arguments), $arguments); | ||
|
||
require __DIR__ . '/../../bootstrap.php'; | ||
PHPUnit\TextUI\Command::main(); | ||
--EXPECTF-- | ||
PHPUnit %s by Sebastian Bergmann and contributors. | ||
|
||
.. 2 / 2 (100%) | ||
|
||
Time: %s, Memory: %s | ||
|
||
OK (2 tests, 5 assertions) |
22 changes: 22 additions & 0 deletions
22
tests/end-to-end/loggers/depends-multiple-parameter-with-isolation.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
phpunit --process-isolation MultiDependencyTest _files/MultiDependencyTest.php | ||
--FILE-- | ||
<?php | ||
$arguments = [ | ||
'--no-configuration', | ||
'--process-isolation', | ||
'MultiDependencyTest', | ||
\realpath(__DIR__ . '/_files/MultiDependencyTest.php'), | ||
]; | ||
\array_splice($_SERVER['argv'], 1, count($arguments), $arguments); | ||
|
||
require __DIR__ . '/../../bootstrap.php'; | ||
PHPUnit\TextUI\Command::main(); | ||
--EXPECTF-- | ||
PHPUnit %s by Sebastian Bergmann and contributors. | ||
|
||
..... 5 / 5 (100%) | ||
|
||
Time: %s, Memory: %s | ||
|
||
OK (5 tests, 6 assertions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
phpunit MultiDependencyTest _files/MultiDependencyTest.php | ||
--FILE-- | ||
<?php | ||
$arguments = [ | ||
'--no-configuration', | ||
'MultiDependencyTest', | ||
\realpath(__DIR__ . '/_files/MultiDependencyTest.php'), | ||
]; | ||
\array_splice($_SERVER['argv'], 1, count($arguments), $arguments); | ||
|
||
require __DIR__ . '/../../bootstrap.php'; | ||
PHPUnit\TextUI\Command::main(); | ||
?> | ||
--EXPECTF-- | ||
PHPUnit %s by Sebastian Bergmann and contributors. | ||
|
||
..... 5 / 5 (100%) | ||
|
||
Time: %s, Memory: %s | ||
|
||
OK (5 tests, 6 assertions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.