-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
When trying to run .test files that contain a class that doesn't define any tests, PHPUnit skips the rest of the tests in that file, with the warning "Warning No tests found in class "FooTestCase".
Adding a test() method to the class resolves the issue, but I wonder if there is a flag or option in PHPUnit so this wouldn't be necessary?
diff --git a/core/modules/node/node.test b/core/modules/node/node.test
index 1dbcaf3..688b828 100644
--- a/core/modules/node/node.test
+++ b/core/modules/node/node.test
@@ -22,6 +22,8 @@ class NodeWebTestCase extends DrupalWebTestCase {
$this->drupalCreateContentType(array('type' => 'article', 'name' => 'Article'));
}
}
+
+ function test() {}
}
/**
Metadata
Metadata
Assignees
Labels
No labels