mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
V 3.5 RC 1
This commit is contained in:
29
lib/unitTest/unitTestsTest.php
Normal file
29
lib/unitTest/unitTestsTest.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/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 = dirname(__FILE__).'/';
|
||||
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;
|
||||
|
||||
|
||||
$this->assertRegExp('/[a-zA-Z0-9-_\.]+Test.php/', $file->getFilename(), 'Verify that all tests files names');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user