Ticket #199 (closed defect: fixed)
PHPUnit integration cannot process nested test suites
| Reported by: | sb@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | major | Milestone: | 0.6 |
| Component: | General | Version: | 0.5.3 |
| Keywords: | PHPUnit | Cc: | osimons |
| Operating System: | BSD |
Description
The PHPUnit integration cannot process nested test suites.
TestSuite.php:
<?php
class OneTest extends PHPUnit_Framework_TestCase
{
public static function testOne()
{
}
}
class TwoTest extends PHPUnit_Framework_TestCase
{
public static function testTwo()
{
}
}
class TestSuite
{
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('Example TestSuite');
$suite->addTestSuite('OneTest');
$suite->addTestSuite('TwoTest');
return $suite;
}
}
Generated XML logfile for TestSuite:
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="Example TestSuite" tests="2" failures="0" errors="0" time="0.001961">
<testsuite name="OneTest" file="/home/sb/TestSuite.php" tests="1" failures="0" errors="0" time="0.001021">
<testcase name="testOne" class="OneTest" file="/home/sb/TestSuite.php" time="0.001021"/>
</testsuite>
<testsuite name="TwoTest" file="/home/sb/TestSuite.php" tests="1" failures="0" errors="0" time="0.000940">
<testcase name="testTwo" class="TwoTest" file="/home/sb/TestSuite.php" time="0.000940"/>
</testsuite>
</testsuite>
</testsuites>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

