Files
Phraseanet/lib/unitTest/unitTestsTest.php
2012-01-20 12:30:19 +01:00

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');
}
}
}