28trait MediaWikiCoversValidator {
34 public function testValidCovers() {
35 $methods = get_class_methods( $this );
36 $class = get_class( $this );
38 foreach ( $methods as $method ) {
39 if ( strpos( $method,
'test' ) === 0 ) {
41 PHPUnit_Util_Test::getLinesToBeCovered( $class, $method );
42 }
catch ( PHPUnit_Framework_CodeCoverageException
$e ) {
43 $bad .=
"$class::$method: {$e->getMessage()}\n";
48 $this->assertEquals(
'', $bad );
returning false will NOT prevent logging $e