mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 21:13:26 +00:00
Syntax Corrections
This commit is contained in:
@@ -921,7 +921,7 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||
{
|
||||
self::$story_1 = \record_adapter::create(
|
||||
self::$collection
|
||||
, new system_file(dirname(__FILE__) . '/testfiles/test001.CR2')
|
||||
, new system_file(__DIR__ . '/testfiles/test001.CR2')
|
||||
, false
|
||||
, true
|
||||
);
|
||||
@@ -1093,139 +1093,139 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||
if ((static::$need_records === true || static::$need_records >= 1) && !self::$record_1 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 1\n";
|
||||
self::$record_sf_1 = new system_file(dirname(__FILE__) . '/testfiles/test001.CR2');
|
||||
self::$record_sf_1 = new system_file(__DIR__ . '/testfiles/test001.CR2');
|
||||
self::$record_1 = record_adapter::create(self::$collection, self::$record_sf_1);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 2) && !self::$record_2 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 2\n";
|
||||
self::$record_sf_2 = new system_file(dirname(__FILE__) . '/testfiles/test002.CR2');
|
||||
self::$record_sf_2 = new system_file(__DIR__ . '/testfiles/test002.CR2');
|
||||
self::$record_2 = record_adapter::create(self::$collection, self::$record_sf_2);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 3) && !self::$record_3 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 3\n";
|
||||
self::$record_sf_3 = new system_file(dirname(__FILE__) . '/testfiles/test003.CR2');
|
||||
self::$record_sf_3 = new system_file(__DIR__ . '/testfiles/test003.CR2');
|
||||
self::$record_3 = record_adapter::create(self::$collection, self::$record_sf_3);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 4) && !self::$record_4 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 4\n";
|
||||
self::$record_sf_4 = new system_file(dirname(__FILE__) . '/testfiles/test004.CR2');
|
||||
self::$record_sf_4 = new system_file(__DIR__ . '/testfiles/test004.CR2');
|
||||
self::$record_4 = record_adapter::create(self::$collection, self::$record_sf_4);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 5) && !self::$record_5 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 5\n";
|
||||
self::$record_sf_5 = new system_file(dirname(__FILE__) . '/testfiles/test005.CR2');
|
||||
self::$record_sf_5 = new system_file(__DIR__ . '/testfiles/test005.CR2');
|
||||
self::$record_5 = record_adapter::create(self::$collection, self::$record_sf_5);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 6) && !self::$record_6 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 6\n";
|
||||
self::$record_sf_6 = new system_file(dirname(__FILE__) . '/testfiles/test006.wav');
|
||||
self::$record_sf_6 = new system_file(__DIR__ . '/testfiles/test006.wav');
|
||||
self::$record_6 = record_adapter::create(self::$collection, self::$record_sf_6);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 7) && !self::$record_7 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 7\n";
|
||||
self::$record_sf_7 = new system_file(dirname(__FILE__) . '/testfiles/test007.ppt');
|
||||
self::$record_sf_7 = new system_file(__DIR__ . '/testfiles/test007.ppt');
|
||||
self::$record_7 = record_adapter::create(self::$collection, self::$record_sf_7);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 8) && !self::$record_8 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 8\n";
|
||||
self::$record_sf_8 = new system_file(dirname(__FILE__) . '/testfiles/test008.ai');
|
||||
self::$record_sf_8 = new system_file(__DIR__ . '/testfiles/test008.ai');
|
||||
self::$record_8 = record_adapter::create(self::$collection, self::$record_sf_8);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 9) && !self::$record_9 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 9\n";
|
||||
self::$record_sf_9 = new system_file(dirname(__FILE__) . '/testfiles/test009.TIFF');
|
||||
self::$record_sf_9 = new system_file(__DIR__ . '/testfiles/test009.TIFF');
|
||||
self::$record_9 = record_adapter::create(self::$collection, self::$record_sf_9);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 10) && !self::$record_10 instanceof record_adapter)
|
||||
{
|
||||
self::$record_sf_10 = new system_file(dirname(__FILE__) . '/testfiles/test010.fla');
|
||||
self::$record_sf_10 = new system_file(__DIR__ . '/testfiles/test010.fla');
|
||||
echo "generate record 10\n";
|
||||
self::$record_10 = record_adapter::create(self::$collection, self::$record_sf_10);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 11) && !self::$record_11 instanceof record_adapter)
|
||||
{
|
||||
self::$record_sf_11 = new system_file(dirname(__FILE__) . '/testfiles/test011.swf');
|
||||
self::$record_sf_11 = new system_file(__DIR__ . '/testfiles/test011.swf');
|
||||
echo "generate record 11\n";
|
||||
self::$record_11 = record_adapter::create(self::$collection, self::$record_sf_11);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 12) && !self::$record_12 instanceof record_adapter)
|
||||
{
|
||||
self::$record_sf_12 = new system_file(dirname(__FILE__) . '/testfiles/test012.wav');
|
||||
self::$record_sf_12 = new system_file(__DIR__ . '/testfiles/test012.wav');
|
||||
echo "generate record 12\n";
|
||||
self::$record_12 = record_adapter::create(self::$collection, self::$record_sf_12);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 13) && !self::$record_13 instanceof record_adapter)
|
||||
{
|
||||
self::$record_sf_13 = new system_file(dirname(__FILE__) . '/testfiles/test013.ai');
|
||||
self::$record_sf_13 = new system_file(__DIR__ . '/testfiles/test013.ai');
|
||||
echo "generate record 13\n";
|
||||
self::$record_13 = record_adapter::create(self::$collection, self::$record_sf_13);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 14) && !self::$record_14 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 14\n";
|
||||
self::$record_sf_14 = new system_file(dirname(__FILE__) . '/testfiles/test014.swf');
|
||||
self::$record_sf_14 = new system_file(__DIR__ . '/testfiles/test014.swf');
|
||||
self::$record_14 = record_adapter::create(self::$collection, self::$record_sf_14);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 15) && !self::$record_15 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 15\n";
|
||||
self::$record_sf_15 = new system_file(dirname(__FILE__) . '/testfiles/test015.eps');
|
||||
self::$record_sf_15 = new system_file(__DIR__ . '/testfiles/test015.eps');
|
||||
self::$record_15 = record_adapter::create(self::$collection, self::$record_sf_15);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 16) && !self::$record_16 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 16\n";
|
||||
self::$record_sf_16 = new system_file(dirname(__FILE__) . '/testfiles/test016.ai');
|
||||
self::$record_sf_16 = new system_file(__DIR__ . '/testfiles/test016.ai');
|
||||
self::$record_16 = record_adapter::create(self::$collection, self::$record_sf_16);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 17) && !self::$record_17 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 17\n";
|
||||
self::$record_sf_17 = new system_file(dirname(__FILE__) . '/testfiles/test017.wav');
|
||||
self::$record_sf_17 = new system_file(__DIR__ . '/testfiles/test017.wav');
|
||||
self::$record_17 = record_adapter::create(self::$collection, self::$record_sf_17);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 18) && !self::$record_18 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 18\n";
|
||||
self::$record_sf_18 = new system_file(dirname(__FILE__) . '/testfiles/test018.TIFF');
|
||||
self::$record_sf_18 = new system_file(__DIR__ . '/testfiles/test018.TIFF');
|
||||
self::$record_18 = record_adapter::create(self::$collection, self::$record_sf_18);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 19) && !self::$record_19 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 19\n";
|
||||
self::$record_sf_19 = new system_file(dirname(__FILE__) . '/testfiles/test019.mp3');
|
||||
self::$record_sf_19 = new system_file(__DIR__ . '/testfiles/test019.mp3');
|
||||
self::$record_19 = record_adapter::create(self::$collection, self::$record_sf_19);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 20) && !self::$record_20 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 20\n";
|
||||
self::$record_sf_20 = new system_file(dirname(__FILE__) . '/testfiles/test020.mp3');
|
||||
self::$record_sf_20 = new system_file(__DIR__ . '/testfiles/test020.mp3');
|
||||
self::$record_20 = record_adapter::create(self::$collection, self::$record_sf_20);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 21) && !self::$record_21 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 21\n";
|
||||
self::$record_sf_21 = new system_file(dirname(__FILE__) . '/testfiles/test021.fla');
|
||||
self::$record_sf_21 = new system_file(__DIR__ . '/testfiles/test021.fla');
|
||||
self::$record_21 = record_adapter::create(self::$collection, self::$record_sf_21);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 22) && !self::$record_22 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 22\n";
|
||||
self::$record_sf_22 = new system_file(dirname(__FILE__) . '/testfiles/test022.swf');
|
||||
self::$record_sf_22 = new system_file(__DIR__ . '/testfiles/test022.swf');
|
||||
self::$record_22 = record_adapter::create(self::$collection, self::$record_sf_22);
|
||||
}
|
||||
if ((static::$need_records === true || static::$need_records >= 23) && !self::$record_23 instanceof record_adapter)
|
||||
{
|
||||
echo "generate record 23\n";
|
||||
self::$record_sf_23 = new system_file(dirname(__FILE__) . '/testfiles/test023.mp4');
|
||||
self::$record_sf_23 = new system_file(__DIR__ . '/testfiles/test023.mp4');
|
||||
self::$record_23 = record_adapter::create(self::$collection, self::$record_sf_23);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user