| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public static function onUnitTestsList( array &$files ) { |
||
| 31 | // @codeCoverageIgnoreStart |
||
| 32 | $directoryIterator = new RecursiveDirectoryIterator( __DIR__ . '/tests/phpunit/' ); |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var SplFileInfo $fileInfo |
||
| 36 | */ |
||
| 37 | foreach ( new RecursiveIteratorIterator( $directoryIterator ) as $fileInfo ) { |
||
| 38 | if ( substr( $fileInfo->getFilename(), -8 ) === 'Test.php' ) { |
||
| 39 | $files[] = $fileInfo->getPathname(); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | return true; |
||
| 44 | } |
||
| 45 | } |
||
| 46 |