Skip to content

Commit

Permalink
- Merge [1778].
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Nov 28, 2007
1 parent ae159a6 commit a5d57e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PHPUnit/Extensions/SeleniumTestCase.php
Expand Up @@ -209,7 +209,9 @@ public function __construct($name = NULL, array $data = array(), array $browser
*/
public static function suite($className)
{
$suite = new PHPUnit_Framework_TestSuite;
$suite = new PHPUnit_Framework_TestSuite;
$suite->setName($className);

$class = new ReflectionClass($className);
$classGroups = PHPUnit_Util_Test::getGroups($class);
$staticProperties = $class->getStaticProperties();
Expand All @@ -230,6 +232,7 @@ public static function suite($className)
if (isset($staticProperties['browsers'])) {
foreach ($staticProperties['browsers'] as $browser) {
$browserSuite = new PHPUnit_Framework_TestSuite;
$browserSuite->setName($className . ': ' . $browser['name']);

foreach ($files as $file) {
$browserSuite->addTest(
Expand All @@ -253,6 +256,7 @@ public static function suite($className)
if (isset($staticProperties['browsers'])) {
foreach ($staticProperties['browsers'] as $browser) {
$browserSuite = new PHPUnit_Framework_TestSuite;
$browserSuite->setName($className . ': ' . $browser['name']);

foreach ($class->getMethods() as $method) {
if (PHPUnit_Framework_TestSuite::isPublicTestMethod($method)) {
Expand Down

0 comments on commit a5d57e1

Please sign in to comment.