diff --git a/Tests/authTest.php b/Tests/AuthTest.php similarity index 84% rename from Tests/authTest.php rename to Tests/AuthTest.php index 0621cce..85c324c 100644 --- a/Tests/authTest.php +++ b/Tests/AuthTest.php @@ -7,26 +7,28 @@ namespace Domframework\Tests; +use Domframework\Auth; + /** Test the authentication */ -class authTest extends PHPUnit_Framework_TestCase +class AuthTest extends \PHPUnit_Framework_TestCase { public function test_page_1 () { - $auth = new auth (); + $auth = new Auth (); $res = $auth->pageHTML ("http://localhost"); $this->assertSame (!! strpos ($res, "
pageHTML ("http://localhost", "MESSAGE"); $this->assertSame (!! strpos ($res, "MESSAGE"), true); } public function test_URL_1 () { - $auth = new auth (); + $auth = new Auth (); $res = $auth->pageHTML ("http://localhost", "MESSAGE", "URL/TEST"); $this->assertSame (!! strpos ($res, "URL/TEST"), true); } @@ -34,7 +36,7 @@ class authTest extends PHPUnit_Framework_TestCase public function test_alreadyAuth_1 () { // Not Authenticated - $auth = new auth (); + $auth = new Auth (); $res = $auth->pageHTML ("http://localhost", "MESSAGE", "URL/TEST", false); $this->assertSame (!! strpos ($res, "Please sign in"), true); } @@ -42,7 +44,7 @@ class authTest extends PHPUnit_Framework_TestCase public function test_alreadyAuth_2 () { // Authenticated - $auth = new auth (); + $auth = new Auth (); $res = $auth->pageHTML ("http://localhost", "", "", "AUTHENTICATED USER"); $this->assertSame (!! strpos ($res, "AUTHENTICATED USER"), true); } diff --git a/Tests/authhtpasswdTest.php b/Tests/AuthhtpasswdTest.php similarity index 96% rename from Tests/authhtpasswdTest.php rename to Tests/AuthhtpasswdTest.php index 53dae2c..5523541 100644 --- a/Tests/authhtpasswdTest.php +++ b/Tests/AuthhtpasswdTest.php @@ -8,7 +8,7 @@ namespace Domframework\Tests; /** Test the authhtpasswd.php file */ -class authhtpasswdTest extends PHPUnit_Framework_TestCase +class authhtpasswdTest extends \PHPUnit_Framework_TestCase { public function test_clean () { diff --git a/Tests/authjwtTest.php b/Tests/AuthjwtTest.php similarity index 99% rename from Tests/authjwtTest.php rename to Tests/AuthjwtTest.php index e1b6e81..0484ec9 100644 --- a/Tests/authjwtTest.php +++ b/Tests/AuthjwtTest.php @@ -8,7 +8,7 @@ namespace Domframework\Tests; /** Test the authjwt.php file */ -class authjwtTest extends PHPUnit_Framework_TestCase +class authjwtTest extends \PHPUnit_Framework_TestCase { public function __construct () { diff --git a/Tests/authsympaTest.php b/Tests/AuthsympaTest.php similarity index 97% rename from Tests/authsympaTest.php rename to Tests/AuthsympaTest.php index 0aed09e..3ed035e 100644 --- a/Tests/authsympaTest.php +++ b/Tests/AuthsympaTest.php @@ -8,7 +8,7 @@ namespace Domframework\Tests; /** Test the authentication on Sympa Service */ -class authsympaTest extends PHPUnit_Framework_TestCase +class authsympaTest extends \PHPUnit_Framework_TestCase { public function test_connect_1 () { diff --git a/Tests/authzgroupsTest.php b/Tests/AuthzgroupsTest.php similarity index 99% rename from Tests/authzgroupsTest.php rename to Tests/AuthzgroupsTest.php index 357d254..dfa73d7 100644 --- a/Tests/authzgroupsTest.php +++ b/Tests/AuthzgroupsTest.php @@ -8,7 +8,7 @@ namespace Domframework\Tests; /** Test the authzgroups.php file */ -class authzgroupsTest extends PHPUnit_Framework_TestCase +class authzgroupsTest extends \PHPUnit_Framework_TestCase { private $dbconfig = array ( "dsn" => "sqlite:/tmp/databaseAuthzGroups.db", diff --git a/Tests/authzgroupsooTest.php b/Tests/AuthzgroupsooTest.php similarity index 99% rename from Tests/authzgroupsooTest.php rename to Tests/AuthzgroupsooTest.php index e7c8acf..f4af458 100644 --- a/Tests/authzgroupsooTest.php +++ b/Tests/AuthzgroupsooTest.php @@ -8,7 +8,7 @@ namespace Domframework\Tests; /** Test the authzgroupsoo.php file */ -class authzgroupsooTest extends PHPUnit_Framework_TestCase +class authzgroupsooTest extends \PHPUnit_Framework_TestCase { private $dbconfig = array ( "dsn" => "sqlite:/tmp/databaseAuthzGroupsoo.db", diff --git a/Tests/cachefileTest.php b/Tests/CachefileTest.php similarity index 97% rename from Tests/cachefileTest.php rename to Tests/CachefileTest.php index d3647ea..8976fb9 100644 --- a/Tests/cachefileTest.php +++ b/Tests/CachefileTest.php @@ -8,7 +8,7 @@ namespace Domframework\Tests; /** Test the cache.php file */ -class cachefileTest extends PHPUnit_Framework_TestCase +class cachefileTest extends \PHPUnit_Framework_TestCase { public function testInit () { diff --git a/Tests/certificationauthorityTest.php b/Tests/CertificationauthorityTest.php similarity index 98% rename from Tests/certificationauthorityTest.php rename to Tests/CertificationauthorityTest.php index b30d781..83f083f 100644 --- a/Tests/certificationauthorityTest.php +++ b/Tests/CertificationauthorityTest.php @@ -9,7 +9,7 @@ namespace Domframework\Tests; /** Test the certification Authority */ -class certificationauthorityTest extends PHPUnit_Framework_TestCase +class certificationauthorityTest extends \PHPUnit_Framework_TestCase { public function test_createCA_1 () { diff --git a/Tests/configTest.php b/Tests/ConfigTest.php similarity index 99% rename from Tests/configTest.php rename to Tests/ConfigTest.php index caa4f87..d626ae1 100644 --- a/Tests/configTest.php +++ b/Tests/ConfigTest.php @@ -8,7 +8,7 @@ namespace Domframework\Tests; /** Test the config.php file */ -class configTest extends PHPUnit_Framework_TestCase +class configTest extends \PHPUnit_Framework_TestCase { public function test_ExternFile () diff --git a/Tests/convertTest.php b/Tests/ConvertTest.php similarity index 98% rename from Tests/convertTest.php rename to Tests/ConvertTest.php index d129189..646a370 100644 --- a/Tests/convertTest.php +++ b/Tests/ConvertTest.php @@ -8,7 +8,7 @@ namespace Domframework\Tests; /** Test the Conversion of format */ -class convertTest extends PHPUnit_Framework_TestCase +class convertTest extends \PHPUnit_Framework_TestCase { public function test_convertDate1 () { diff --git a/Tests/csrfTest.php b/Tests/CsrfTest.php similarity index 97% rename from Tests/csrfTest.php rename to Tests/CsrfTest.php index 44b36de..29b95ae 100644 --- a/Tests/csrfTest.php +++ b/Tests/CsrfTest.php @@ -8,7 +8,7 @@ namespace Domframework\Tests; /** Test the csrf.php file */ -class csrfTest extends PHPUnit_Framework_TestCase +class csrfTest extends \PHPUnit_Framework_TestCase { public function test_csrf1 () { diff --git a/Tests/dbjsonTest.php b/Tests/DbjsonTest.php similarity index 99% rename from Tests/dbjsonTest.php rename to Tests/DbjsonTest.php index 10b54e5..b73d5f6 100644 --- a/Tests/dbjsonTest.php +++ b/Tests/DbjsonTest.php @@ -8,7 +8,7 @@ namespace Domframework\Tests; /** Test the dbjson database */ -class dbjsonTest extends PHPUnit_Framework_TestCase +class dbjsonTest extends \PHPUnit_Framework_TestCase { public function test_insertOne1 () { diff --git a/Tests/dblayerComplet.php b/Tests/DblayerComplet.php similarity index 100% rename from Tests/dblayerComplet.php rename to Tests/DblayerComplet.php diff --git a/Tests/dblayerauthzgroupsTest.php b/Tests/DblayerauthzgroupsTest.php similarity index 99% rename from Tests/dblayerauthzgroupsTest.php rename to Tests/DblayerauthzgroupsTest.php index 5e94aaf..6f806c7 100644 --- a/Tests/dblayerauthzgroupsTest.php +++ b/Tests/DblayerauthzgroupsTest.php @@ -7,7 +7,7 @@ namespace Domframework\Tests; -class dblayerauthzgroupsTest extends PHPUnit_Framework_TestCase +class dblayerauthzgroupsTest extends \PHPUnit_Framework_TestCase { public $confs = array ( "sqlite" => array ( diff --git a/Tests/dblayerooComplet.php b/Tests/DblayerooComplet.php similarity index 100% rename from Tests/dblayerooComplet.php rename to Tests/DblayerooComplet.php diff --git a/Tests/encryptTest.php b/Tests/EncryptTest.php similarity index 98% rename from Tests/encryptTest.php rename to Tests/EncryptTest.php index 25cd1fe..bed7c33 100644 --- a/Tests/encryptTest.php +++ b/Tests/EncryptTest.php @@ -5,7 +5,7 @@ */ /** Test the encrypt.php file */ -class encryptTest extends PHPUnit_Framework_TestCase +class encryptTest extends \PHPUnit_Framework_TestCase { /** Check the length of the otken with cipher */ diff --git a/Tests/fileTest.php b/Tests/FileTest.php similarity index 99% rename from Tests/fileTest.php rename to Tests/FileTest.php index e8ddb23..5d7d5ae 100644 --- a/Tests/fileTest.php +++ b/Tests/FileTest.php @@ -4,7 +4,7 @@ @author Dominique Fournier */ /** Test the domframework file part */ -class fileTest extends PHPUnit_Framework_TestCase +class fileTest extends \PHPUnit_Framework_TestCase { public function testinit () { diff --git a/Tests/ftsTest.php b/Tests/FtsTest.php similarity index 99% rename from Tests/ftsTest.php rename to Tests/FtsTest.php index 2d382f2..beb9fb1 100644 --- a/Tests/ftsTest.php +++ b/Tests/FtsTest.php @@ -1,7 +1,7 @@