Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df0b6ab
commit c62eef8
Showing
5 changed files
with
77 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--TEST-- | ||
phpunit --coverage-clover php://stdout EmptyTestCaseTest ../_files/EmptyTestCaseTest.php | ||
--FILE-- | ||
<?php | ||
$_SERVER['argv'][1] = '--no-configuration'; | ||
$_SERVER['argv'][2] = '--coverage-clover'; | ||
$_SERVER['argv'][3] = 'php://stdout'; | ||
$_SERVER['argv'][4] = 'EmptyTestCaseTest'; | ||
$_SERVER['argv'][5] = dirname(dirname(__FILE__)) . '/_files/EmptyTestCaseTest.php'; | ||
|
||
require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php'; | ||
PHPUnit_TextUI_Command::main(); | ||
?> | ||
--EXPECTF-- | ||
PHPUnit %s by Sebastian Bergmann. | ||
|
||
F | ||
|
||
Time: %i seconds | ||
|
||
There was 1 failure: | ||
|
||
1) Warning | ||
No tests found in class "EmptyTestCaseTest". | ||
|
||
%s:%i | ||
|
||
FAILURES! | ||
Tests: 1, Assertions: 0, Failures: 1. | ||
|
||
Writing code coverage data to XML file, this may take a moment.<?xml version="1.0" encoding="UTF-8"?> | ||
<coverage generated="%i" phpunit="%s"> | ||
<project name="EmptyTestCaseTest" timestamp="%i"> | ||
<metrics files="0" loc="0" ncloc="0" classes="0" methods="0" coveredmethods="0" statements="0" coveredstatements="0" elements="0" coveredelements="0"/> | ||
</project> | ||
</coverage> |
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,27 @@ | ||
--TEST-- | ||
phpunit EmptyTestCaseTest ../_files/EmptyTestCaseTest.php | ||
--FILE-- | ||
<?php | ||
$_SERVER['argv'][1] = '--no-configuration'; | ||
$_SERVER['argv'][2] = 'EmptyTestCaseTest'; | ||
$_SERVER['argv'][3] = dirname(dirname(__FILE__)) . '/_files/EmptyTestCaseTest.php'; | ||
|
||
require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php'; | ||
PHPUnit_TextUI_Command::main(); | ||
?> | ||
--EXPECTF-- | ||
PHPUnit %s by Sebastian Bergmann. | ||
|
||
F | ||
|
||
Time: %i seconds | ||
|
||
There was 1 failure: | ||
|
||
1) Warning | ||
No tests found in class "EmptyTestCaseTest". | ||
|
||
%s:%i | ||
|
||
FAILURES! | ||
Tests: 1, Assertions: 0, Failures: 1. |
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,4 @@ | ||
<?php | ||
class EmptyTestCaseTest extends PHPUnit_Framework_TestCase | ||
{ | ||
} |
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