mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 20:13:28 +00:00
31 lines
825 B
PHP
31 lines
825 B
PHP
<?php
|
|
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
|
|
|
/**
|
|
* Test class for random.
|
|
* Generated by PHPUnit on 2011-05-27 at 18:41:53.
|
|
*/
|
|
class unitTestsTest extends PhraseanetPHPUnitAbstract
|
|
{
|
|
|
|
public function testFiles()
|
|
{
|
|
$testDir = __DIR__.'/';
|
|
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($testDir), RecursiveIteratorIterator::LEAVES_ONLY) as $file)
|
|
{
|
|
if (strpos($file, '/.svn/') !== false)
|
|
continue;
|
|
if (substr($file->getFilename(), 0, 1) === '.')
|
|
continue;
|
|
if (substr($file->getFilename(), -4) !== '.php')
|
|
continue;
|
|
if($file->getFilename() === "BoilerPlate.php")
|
|
continue;
|
|
|
|
$this->assertRegExp('/[a-zA-Z0-9-_\.]+Test.php/', $file->getPathname(), 'Verify that all tests files names');
|
|
}
|
|
}
|
|
|
|
}
|
|
|