mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
Fix CS
This commit is contained in:
@@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
require_once __DIR__ . '/PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
|
||||||
* Test class for searchEngine_options.
|
|
||||||
* Generated by PHPUnit on 2012-01-11 at 15:13:53.
|
|
||||||
*/
|
|
||||||
class searchEngine_optionsTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
class searchEngine_optionsTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -14,24 +10,11 @@ class searchEngine_optionsTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
|||||||
*/
|
*/
|
||||||
protected $object;
|
protected $object;
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
$this->object = new searchEngine_options();
|
$this->object = new searchEngine_options();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
public function tearDown()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testSet_locale()
|
public function testSet_locale()
|
||||||
{
|
{
|
||||||
$locale = 'BABA';
|
$locale = 'BABA';
|
||||||
|
@@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
|
||||||
* Test class for setup.
|
|
||||||
* Generated by PHPUnit on 2011-07-06 at 18:33:21.
|
|
||||||
*/
|
|
||||||
class setupTest extends PhraseanetPHPUnitAbstract
|
class setupTest extends PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -200,4 +196,3 @@ class setupTest extends PhraseanetPHPUnitAbstract
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
|
||||||
* Test class for sphinxrt.
|
|
||||||
* Generated by PHPUnit on 2011-07-06 at 18:31:37.
|
|
||||||
*/
|
|
||||||
class sphinxrtTest extends PhraseanetPHPUnitAbstract
|
class sphinxrtTest extends PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -65,5 +61,3 @@ class sphinxrtTest extends PhraseanetPHPUnitAbstract
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
|
||||||
* Test class for thesaurus.
|
|
||||||
* Generated by PHPUnit on 2011-07-06 at 18:30:03.
|
|
||||||
*/
|
|
||||||
class thesaurusTest extends PhraseanetPHPUnitAbstract
|
class thesaurusTest extends PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
|
||||||
* Test class for unicode.
|
|
||||||
* Generated by PHPUnit on 2011-05-27 at 16:32:47.
|
|
||||||
*/
|
|
||||||
class unicodeTest extends PhraseanetPHPUnitAbstract
|
class unicodeTest extends PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -37,7 +33,6 @@ class unicodeTest extends PhraseanetPHPUnitAbstract
|
|||||||
$this->assertEquals('PeTARDS', $this->object->remove_nonazAZ09('PéTARDS'));
|
$this->assertEquals('PeTARDS', $this->object->remove_nonazAZ09('PéTARDS'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function testRemove_first_digits()
|
public function testRemove_first_digits()
|
||||||
{
|
{
|
||||||
$this->assertEquals('', $this->object->remove_first_digits('123456789'));
|
$this->assertEquals('', $this->object->remove_first_digits('123456789'));
|
||||||
|
@@ -1,16 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
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
|
class unitTestsTest extends PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
public function testFiles()
|
public function testFiles()
|
||||||
{
|
{
|
||||||
$testDir = __DIR__.'/';
|
$testDir = __DIR__ . '/';
|
||||||
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($testDir), RecursiveIteratorIterator::LEAVES_ONLY) as $file)
|
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($testDir), RecursiveIteratorIterator::LEAVES_ONLY) as $file)
|
||||||
{
|
{
|
||||||
if (strpos($file, '/.svn/') !== false)
|
if (strpos($file, '/.svn/') !== false)
|
||||||
@@ -21,7 +18,7 @@ class unitTestsTest extends PhraseanetPHPUnitAbstract
|
|||||||
continue;
|
continue;
|
||||||
if (substr($file->getFilename(), -9) === 'class.php')
|
if (substr($file->getFilename(), -9) === 'class.php')
|
||||||
continue;
|
continue;
|
||||||
if($file->getFilename() === "BoilerPlate.php")
|
if ($file->getFilename() === "BoilerPlate.php")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
$this->assertRegExp('/[a-zA-Z0-9-_\.]+Test.php/', $file->getPathname(), 'Verify that all tests files names');
|
$this->assertRegExp('/[a-zA-Z0-9-_\.]+Test.php/', $file->getPathname(), 'Verify that all tests files names');
|
||||||
|
@@ -1,30 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is part of Phraseanet
|
|
||||||
*
|
|
||||||
* (c) 2005-2010 Alchemy
|
|
||||||
*
|
|
||||||
* For the full copyright and license information, please view the LICENSE
|
|
||||||
* file that was distributed with this source code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @package
|
|
||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
|
||||||
* @link www.phraseanet.com
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class userTest extends PhraseanetPHPUnitAbstract
|
class userTest extends PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public function testMail()
|
public function testMail()
|
||||||
{
|
{
|
||||||
$this->assertFalse(User_Adapter::get_usr_id_from_email(null));
|
$this->assertFalse(User_Adapter::get_usr_id_from_email(null));
|
||||||
@@ -40,7 +20,7 @@ class userTest extends PhraseanetPHPUnitAbstract
|
|||||||
self::$user->set_email('noone@example.com');
|
self::$user->set_email('noone@example.com');
|
||||||
$this->assertEquals(self::$user->get_id(), User_Adapter::get_usr_id_from_email('noone@example.com'));
|
$this->assertEquals(self::$user->get_id(), User_Adapter::get_usr_id_from_email('noone@example.com'));
|
||||||
}
|
}
|
||||||
catch(Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
$this->fail($e->getMessage());
|
$this->fail($e->getMessage());
|
||||||
}
|
}
|
||||||
@@ -50,10 +30,11 @@ class userTest extends PhraseanetPHPUnitAbstract
|
|||||||
self::$user->set_email('noonealt1@example.com');
|
self::$user->set_email('noonealt1@example.com');
|
||||||
$this->fail('A user already got this address');
|
$this->fail('A user already got this address');
|
||||||
}
|
}
|
||||||
catch(Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
$this->assertFalse(User_Adapter::get_usr_id_from_email(null));
|
$this->assertFalse(User_Adapter::get_usr_id_from_email(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
|
||||||
* Test class for uuid.
|
|
||||||
* Generated by PHPUnit on 2011-05-27 at 14:58:30.
|
|
||||||
*/
|
|
||||||
class uuidTest extends PhraseanetPHPUnitAbstract
|
class uuidTest extends PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user