Compare commits

..

3 Commits

Author SHA1 Message Date
Dominique FOURNIER b1e513126e Add all the namespaces in Tests 2021-05-07 10:12:16 +02:00
Dominique FOURNIER 47f171367a Add README.md file 2021-05-07 10:00:31 +02:00
Dominique FOURNIER 7a4141a70b Move all the files in src directory 2021-05-07 09:58:35 +02:00
129 changed files with 244 additions and 41 deletions
+7
View File
@@ -0,0 +1,7 @@
# DomFramework
# Introduction
This library is small : one feature in one file.
Well tested, developped from 2005 without interruption.
# Install from Composer !
+7
View File
@@ -1,4 +1,11 @@
<?php <?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the authentication */ /** Test the authentication */
class authTest extends PHPUnit_Framework_TestCase class authTest extends PHPUnit_Framework_TestCase
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the authhtpasswd.php file */ /** Test the authhtpasswd.php file */
class authhtpasswdTest extends PHPUnit_Framework_TestCase class authhtpasswdTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the authjwt.php file */ /** Test the authjwt.php file */
class authjwtTest extends PHPUnit_Framework_TestCase class authjwtTest extends PHPUnit_Framework_TestCase
{ {
+7
View File
@@ -1,4 +1,11 @@
<?php <?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the authentication on Sympa Service */ /** Test the authentication on Sympa Service */
class authsympaTest extends PHPUnit_Framework_TestCase class authsympaTest extends PHPUnit_Framework_TestCase
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the authzgroups.php file */ /** Test the authzgroups.php file */
class authzgroupsTest extends PHPUnit_Framework_TestCase class authzgroupsTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the authzgroupsoo.php file */ /** Test the authzgroupsoo.php file */
class authzgroupsooTest extends PHPUnit_Framework_TestCase class authzgroupsooTest extends PHPUnit_Framework_TestCase
{ {
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the cache.php file */ /** Test the cache.php file */
class cachefileTest extends PHPUnit_Framework_TestCase class cachefileTest extends PHPUnit_Framework_TestCase
+7
View File
@@ -1,4 +1,11 @@
<?php <?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the certification Authority /** Test the certification Authority
*/ */
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the config.php file */ /** Test the config.php file */
class configTest extends PHPUnit_Framework_TestCase class configTest extends PHPUnit_Framework_TestCase
+7
View File
@@ -1,4 +1,11 @@
<?php <?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
$conf = array ( $conf = array (
"database"=> array ( "database"=> array (
"dsn" => "sqlite:/tmp/database.db", "dsn" => "sqlite:/tmp/database.db",
+7
View File
@@ -1,4 +1,11 @@
<?php <?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the Conversion of format */ /** Test the Conversion of format */
class convertTest extends PHPUnit_Framework_TestCase class convertTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the csrf.php file */ /** Test the csrf.php file */
class csrfTest extends PHPUnit_Framework_TestCase class csrfTest extends PHPUnit_Framework_TestCase
{ {
+7
View File
@@ -1,4 +1,11 @@
<?php <?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the dbjson database */ /** Test the dbjson database */
class dbjsonTest extends PHPUnit_Framework_TestCase class dbjsonTest extends PHPUnit_Framework_TestCase
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
class dblayerTest{ENGINE} extends PHPUnit_Framework_TestCase class dblayerTest{ENGINE} extends PHPUnit_Framework_TestCase
{ {
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
class dblayerauthzgroupsTest extends PHPUnit_Framework_TestCase class dblayerauthzgroupsTest extends PHPUnit_Framework_TestCase
{ {
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
class dblayerooTest{ENGINE} extends PHPUnit_Framework_TestCase class dblayerooTest{ENGINE} extends PHPUnit_Framework_TestCase
{ {
+7
View File
@@ -1,4 +1,11 @@
<?php <?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the GetOpts */ /** Test the GetOpts */
class getoptsTest extends PHPUnit_Framework_TestCase class getoptsTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the http.php file */ /** Test the http.php file */
class httpTest extends PHPUnit_Framework_TestCase class httpTest extends PHPUnit_Framework_TestCase
{ {
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the outputjson.php file */ /** Test the outputjson.php file */
class inifileTest extends PHPUnit_Framework_TestCase class inifileTest extends PHPUnit_Framework_TestCase
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the ipaddresses.php file */ /** Test the ipaddresses.php file */
class ipaddressesTest extends PHPUnit_Framework_TestCase class ipaddressesTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the jwt.php file */ /** Test the jwt.php file */
class jwtTest extends PHPUnit_Framework_TestCase class jwtTest extends PHPUnit_Framework_TestCase
{ {
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the macaddresses.php file */ /** Test the macaddresses.php file */
class macaddressesTest extends PHPUnit_Framework_TestCase class macaddressesTest extends PHPUnit_Framework_TestCase
{ {
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the mail.php file */ /** Test the mail.php file */
class mailTest extends PHPUnit_Framework_TestCase class mailTest extends PHPUnit_Framework_TestCase
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the outputjson.php file */ /** Test the outputjson.php file */
class markdownTest extends PHPUnit_Framework_TestCase class markdownTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the outputdl.php file */ /** Test the outputdl.php file */
class outputdlTest extends PHPUnit_Framework_TestCase class outputdlTest extends PHPUnit_Framework_TestCase
{ {
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the outputhtml.php file */ /** Test the outputhtml.php file */
class outputhtmlTest extends PHPUnit_Framework_TestCase class outputhtmlTest extends PHPUnit_Framework_TestCase
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the outputjson.php file */ /** Test the outputjson.php file */
class outputjsonTest extends PHPUnit_Framework_TestCase class outputjsonTest extends PHPUnit_Framework_TestCase
+8
View File
@@ -1,4 +1,12 @@
<?php <?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the password class /** Test the password class
*/ */
class passwordTest extends PHPUnit_Framework_TestCase class passwordTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the queue.php file */ /** Test the queue.php file */
class queueTest extends PHPUnit_Framework_TestCase class queueTest extends PHPUnit_Framework_TestCase
{ {
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the queuefile.php file */ /** Test the queuefile.php file */
class queuefileTest extends PHPUnit_Framework_TestCase class queuefileTest extends PHPUnit_Framework_TestCase
{ {
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the ratelimit.php file */ /** Test the ratelimit.php file */
class ratelimitTest extends PHPUnit_Framework_TestCase class ratelimitTest extends PHPUnit_Framework_TestCase
{ {
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the ratelimitfile.php file */ /** Test the ratelimitfile.php file */
class ratelimitfileTest extends PHPUnit_Framework_TestCase class ratelimitfileTest extends PHPUnit_Framework_TestCase
{ {
+4 -1
View File
@@ -1,9 +1,12 @@
<?php <?php
/** DomFramework /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the domframework REST part */ /** Test the domframework REST part */
class restTest extends PHPUnit_Framework_TestCase class restTest extends PHPUnit_Framework_TestCase
{ {
+9 -1
View File
@@ -1,5 +1,13 @@
<?php <?php
/** Test the mrobotstxt.txt file /** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the robotstxt file
*/ */
class robotstxtTest extends PHPUnit_Framework_TestCase class robotstxtTest extends PHPUnit_Framework_TestCase
{ {
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the route.php file */ /** Test the route.php file */
class routeTest extends PHPUnit_Framework_TestCase class routeTest extends PHPUnit_Framework_TestCase
+7
View File
@@ -1,4 +1,11 @@
<?php <?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the RSS */ /** Test the RSS */
class rssTest extends PHPUnit_Framework_TestCase class rssTest extends PHPUnit_Framework_TestCase
+8
View File
@@ -1,4 +1,12 @@
<?php <?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the sitemap.php file /** Test the sitemap.php file
*/ */
class sitemapTest extends PHPUnit_Framework_TestCase class sitemapTest extends PHPUnit_Framework_TestCase
+4 -1
View File
@@ -1,9 +1,12 @@
<?php <?php
/** DomFramework /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the spfcheck tools /** Test the spfcheck tools
*/ */
class spfcheckTest extends PHPUnit_Framework_TestCase class spfcheckTest extends PHPUnit_Framework_TestCase
+4 -1
View File
@@ -1,9 +1,12 @@
<?php <?php
/** DomFramework /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the domframework Server-Sent Events part */ /** Test the domframework Server-Sent Events part */
class sseTest extends PHPUnit_Framework_TestCase class sseTest extends PHPUnit_Framework_TestCase
{ {
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the TCP client */ /** Test the TCP client */
class tcpclientTest extends PHPUnit_Framework_TestCase class tcpclientTest extends PHPUnit_Framework_TestCase
{ {
+6 -2
View File
@@ -1,7 +1,11 @@
<?php <?php
/** DomFramework - Tests /** DomFramework - Tests
@package domframework * @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the userssql.php file */ /** Test the userssql.php file */
class userssqlTest extends PHPUnit_Framework_TestCase class userssqlTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the uuid.php file */ /** Test the uuid.php file */
class uuidTest extends PHPUnit_Framework_TestCase class uuidTest extends PHPUnit_Framework_TestCase
{ {
+7
View File
@@ -1,4 +1,11 @@
<?php <?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the Verify */ /** Test the Verify */
class verifyTest extends PHPUnit_Framework_TestCase class verifyTest extends PHPUnit_Framework_TestCase
+4 -1
View File
@@ -1,9 +1,12 @@
<?php <?php
/** DomFramework /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the domframework xdiff part */ /** Test the domframework xdiff part */
class xdiffTest extends PHPUnit_Framework_TestCase class xdiffTest extends PHPUnit_Framework_TestCase
{ {
+4 -1
View File
@@ -1,9 +1,12 @@
<?php <?php
/** DomFramework /** DomFramework - Tests
* @package domframework * @package domframework
* @author Dominique Fournier <dominique@fournier38.fr> * @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/ */
namespace Domframework\Tests;
/** Test the domframework xmppclient part */ /** Test the domframework xmppclient part */
class xmppclientTest extends PHPUnit_Framework_TestCase class xmppclientTest extends PHPUnit_Framework_TestCase
{ {
-5
View File
@@ -15,11 +15,6 @@
"require": { "require": {
"php": ">=7.0.0" "php": ">=7.0.0"
}, },
"scripts" : {
"post-file-download": [
"sed -i 's#//namespace Domframework#namespace Domframework#' *.php"
]
},
"autoload": { "autoload": {
"exclude-from-classmap": ["/docs/", "/doc/", "/debian/", "/cover/", "/Tests/", "/locale/", "/tools/"] "exclude-from-classmap": ["/docs/", "/doc/", "/debian/", "/cover/", "/Tests/", "/locale/", "/tools/"]
} }
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File

Some files were not shown because too many files have changed in this diff Show More