DeprecatedTest
Total: 1,Passed: 1,Failed: 0,Skipped: 0,Incomplete: 0Assertions: 1,Problems: 1,Executed in 0.002900 seconds.
testDeprecated
Assertions: 1,Problems: 1,Executed in 0.002900 seconds.
\home\www\libs\PHPUnit_Html\tests\DeprecatedTest.php:(between 4 and 6) - assertType() will be removed in PHPUnit 3.6 and should no longer be used. assertInternalType() should be used for asserting internal types such as "integer" or "string" whereas assertInstanceOf() should be used for asserting that an object is an instance of a specified class or interface.
\home\www\libs\PHPUnit_Html\tests\DeprecatedTest.php
4 | public function testDeprecated() { |
5 | $this->assertType('int', 3); |
6 | } |
ExceptionTest
Total: 2,Passed: 2,Failed: 0,Skipped: 0,Incomplete: 0Assertions: 0,Problems: 2,Executed in 0.001029 seconds.
testException
Assertions: 0,Problems: 1,Executed in 0.000474 seconds.
This is an thrown exception. It was manually thrown by using the PHP 'throw' keyword. The message is intentionally long so as to test the message wrapping in the message box display. in \home\www\libs\PHPUnit_Html\tests\ExceptionTest.php#5
0 | ??() | \home\www\libs\PHPUnit_Html\tests\ExceptionTest.php:5 |
\home\www\libs\PHPUnit_Html\tests\ExceptionTest.php
4 | public function testException() { |
5 | throw new \Exception('This is an thrown exception. It was manually thrown by using the PHP \'throw\' keyword. The message is intentionally long so as to test the message wrapping in the message box display.'); |
6 | } |
testTrigger
Assertions: 0,Problems: 1,Executed in 0.000555 seconds.
This is an triggered error. It was manually triggered by calling the PHP function 'trigger_error'. The message is intentionally long so as to test the message wrapping in the message box display. in \home\www\libs\PHPUnit_Html\tests\ExceptionTest.php#9
0 | trigger_error() | \home\www\libs\PHPUnit_Html\tests\ExceptionTest.php:9 |
\home\www\libs\PHPUnit_Html\tests\ExceptionTest.php
8 | public function testTrigger() { |
9 | trigger_error('This is an triggered error. It was manually triggered by calling the PHP function \'trigger_error\'. The message is intentionally long so as to test the message wrapping in the message box display.'); |
10 | } |
FailedTest
Total: 3,Passed: 2,Failed: 1,Skipped: 0,Incomplete: 0Assertions: 1,Problems: 2,Executed in 0.005117 seconds.
testFailed
Assertions: 1,Problems: 0,Executed in 0.003874 seconds.
This is doomed to failure!
Failed asserting that <integer:2> matches expected <integer:1>.
\home\www\libs\PHPUnit_Html\tests\FailedTest.php:6
some random debug message
\home\www\libs\PHPUnit_Html\tests\FailedTest.php
4 | public function testFailed() { |
5 | print_r('some random debug message'); |
6 | $this->assertEquals(1, 2, 'This is doomed to failure!'); |
7 | } |
testWithError
Assertions: 0,Problems: 1,Executed in 0.000551 seconds.
Use of undefined constant somestr - assumed 'somestr' in \home\www\libs\PHPUnit_Html\tests\FailedTest.php#10
0 | PHPUnit_Util_ErrorHandler::handleError() | \home\www\libs\PHPUnit_Html\tests\FailedTest.php:10 |
\home\www\libs\PHPUnit_Html\tests\FailedTest.php
9 | public function testWithError() { |
10 | somestr; |
11 | $this->assertEquals(1, 2); |
12 | } |
testWithDeepError
Assertions: 0,Problems: 1,Executed in 0.000692 seconds.
Undefined variable: some_undefined_variable in \home\www\libs\PHPUnit_Html\tests\FailedTest.php#24
0 | PHPUnit_Util_ErrorHandler::handleError() | \home\www\libs\PHPUnit_Html\tests\FailedTest.php:24 |
1 | sample_function_containing_error() | \home\www\libs\PHPUnit_Html\tests\FailedTest.php:23 |
2 | sample_function3() | \home\www\libs\PHPUnit_Html\tests\FailedTest.php:22 |
3 | sample_function2() | \home\www\libs\PHPUnit_Html\tests\FailedTest.php:21 |
4 | sample_function1() | \home\www\libs\PHPUnit_Html\tests\FailedTest.php:20 |
5 | sample_function() | \home\www\libs\PHPUnit_Html\tests\FailedTest.php:15 |
\home\www\libs\PHPUnit_Html\tests\FailedTest.php
14 | public function testWithDeepError() { |
15 | sample_function(); |
16 | $this->assertEquals(1, 2); |
17 | } |
IncompleteTest
Total: 3,Passed: 1,Failed: 1,Skipped: 0,Incomplete: 1Assertions: 2,Problems: 0,Executed in 0.002630 seconds.
testIncomplete
Assertions: 1,Problems: 0,Executed in 0.001772 seconds.
This test is marked as incomplete.
\home\www\libs\PHPUnit_Html\tests\IncompleteTest.php:6
\home\www\libs\PHPUnit_Html\tests\IncompleteTest.php
4 | public function testIncomplete() { |
5 | $this->assertTrue(TRUE); |
6 | $this->markTestIncomplete('This test is marked as incomplete.'); |
7 | } |
testAssertFailAssertPass
Assertions: 1,Problems: 0,Executed in 0.000764 seconds.
Failed asserting that <integer:0> matches expected <integer:1>.
\home\www\libs\PHPUnit_Html\tests\IncompleteTest.php:11
This test has a bad assertion followed by a good assertion
\home\www\libs\PHPUnit_Html\tests\IncompleteTest.php
9 | public function testAssertFailAssertPass() { |
10 | print_r('This test has a bad assertion followed by a good assertion'); |
11 | $this->assertEquals(1, 0); |
12 | $this->assertEquals(1, 1); |
13 | } |
testNoAssertions
Assertions: 0,Problems: 0,Executed in 0.000094 seconds.
\home\www\libs\PHPUnit_Html\tests\IncompleteTest.php
15 | public function testNoAssertions() { |
16 | print_r('This test does nothing'); |
17 | } |
PassedTest
Total: 2,Passed: 2,Failed: 0,Skipped: 0,Incomplete: 0Assertions: 3,Problems: 0,Executed in 0.000478 seconds.
testThisPasses
Assertions: 2,Problems: 0,Executed in 0.000184 seconds.
Array
(
[0] => some
[1] => random
[2] => array
)
\home\www\libs\PHPUnit_Html\tests\PassedTest.php
4 | public function testThisPasses() { |
5 | print_r(array('some', 'random', 'array')); |
6 | $this->assertEquals(1, 1); |
7 | $this->assertEquals(1, 1); |
8 | } |
testThisPassesToo
Assertions: 1,Problems: 0,Executed in 0.000294 seconds.
<?php
class PassedTest extends PHPUnit_Framework_TestCase {
public function testThisPasses() {
print_r(array('some', 'random', 'array'));
$this->assertEquals(1, 1);
$this->assertEquals(1, 1);
}
public function testThisPassesToo() {
print_r(file_get_contents(__FILE__));
$this->assertEquals(1, 1);
}
}
?>
\home\www\libs\PHPUnit_Html\tests\PassedTest.php
10 | public function testThisPassesToo() { |
11 | print_r(file_get_contents(__FILE__)); |
12 | $this->assertEquals(1, 1); |
13 | } |
SkippedTest
Total: 2,Passed: 0,Failed: 0,Skipped: 2,Incomplete: 0Assertions: 0,Problems: 0,Executed in 0.001514 seconds.
testPassed
Assertions: 0,Problems: 0,Executed in 0.001157 seconds.
All tests are marked as skipped.
\home\www\libs\PHPUnit_Html\tests\SkippedTest.php:5
\home\www\libs\PHPUnit_Html\tests\SkippedTest.php
8 | public function testPassed() { |
9 | $this->assertEquals(1, 1, 'This test should not fail!'); |
10 | } |
testFailed
Assertions: 0,Problems: 0,Executed in 0.000357 seconds.
All tests are marked as skipped.
\home\www\libs\PHPUnit_Html\tests\SkippedTest.php:5
\home\www\libs\PHPUnit_Html\tests\SkippedTest.php
12 | public function testFailed() { |
13 | $this->assertEquals(1, 0, 'This test is meant to fail!'); |
14 | } |
SubTest
Total: 2,Passed: 2,Failed: 0,Skipped: 0,Incomplete: 0Assertions: 2,Problems: 2,Executed in 0.000937 seconds.
testDeprecatedAndError
Assertions: 1,Problems: 2,Executed in 0.000791 seconds.
Undefined variable: some_undefined_variable in \home\www\libs\PHPUnit_Html\tests\FailedTest.php#24
0 | PHPUnit_Util_ErrorHandler::handleError() | \home\www\libs\PHPUnit_Html\tests\FailedTest.php:24 |
1 | sample_function_containing_error() | \home\www\libs\PHPUnit_Html\tests\FailedTest.php:23 |
2 | sample_function3() | \home\www\libs\PHPUnit_Html\tests\FailedTest.php:22 |
3 | sample_function2() | \home\www\libs\PHPUnit_Html\tests\FailedTest.php:21 |
4 | sample_function1() | \home\www\libs\PHPUnit_Html\tests\FailedTest.php:20 |
5 | sample_function() | \home\www\libs\PHPUnit_Html\tests\tests\SubTest.php:6 |
\home\www\libs\PHPUnit_Html\tests\tests\SubTest.php:(between 4 and 7) - assertType() will be removed in PHPUnit 3.6 and should no longer be used. assertInternalType() should be used for asserting internal types such as "integer" or "string" whereas assertInstanceOf() should be used for asserting that an object is an instance of a specified class or interface.
\home\www\libs\PHPUnit_Html\tests\tests\SubTest.php
4 | public function testDeprecatedAndError() { |
5 | $this->assertType('int', 3); |
6 | sample_function(); |
7 | } |
test2
Assertions: 1,Problems: 0,Executed in 0.000146 seconds.
$fred=Array
(
[0] => 2
[1] => 4
[2] => 6
)
\home\www\libs\PHPUnit_Html\tests\tests\SubTest.php
9 | function test2() { |
10 | $fred = array(2, 4, 6); |
11 | echo '$fred='; |
12 | print_r($fred); |
13 | $this->assertEquals($fred, array(2, 4, 6)); |
14 | } |