Permalink
Browse files

Print class name when warning about non-public test methods.

  • Loading branch information...
p committed Feb 9, 2011
1 parent 62d73cb commit df05f996d8c15c38d7e19844db637b21d218772a
Showing with 3 additions and 3 deletions.
  1. +3 −3 PHPUnit/Framework/TestSuite.php
@@ -831,9 +831,9 @@ protected function addTestMethod(ReflectionClass $class, ReflectionMethod $metho
$this->addTest(
self::warning(
sprintf(
- 'Test method "%s" is not public.',
-
- $name
+ 'Test method "%s" in test class "%s" is not public.',
+ $name,
+ $class->getName()
)
)
);

0 comments on commit df05f99

Please sign in to comment.