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
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the authentication */
class authTest extends PHPUnit_Framework_TestCase
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the authhtpasswd.php file */
class authhtpasswdTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the authjwt.php file */
class authjwtTest extends PHPUnit_Framework_TestCase
{
+7
View File
@@ -1,4 +1,11 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the authentication on Sympa Service */
class authsympaTest extends PHPUnit_Framework_TestCase
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the authzgroups.php file */
class authzgroupsTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the authzgroupsoo.php file */
class authzgroupsooTest extends PHPUnit_Framework_TestCase
{
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the cache.php file */
class cachefileTest extends PHPUnit_Framework_TestCase
+7
View File
@@ -1,4 +1,11 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the certification Authority
*/
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the config.php file */
class configTest extends PHPUnit_Framework_TestCase
+7
View File
@@ -1,4 +1,11 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
$conf = array (
"database"=> array (
"dsn" => "sqlite:/tmp/database.db",
+7
View File
@@ -1,4 +1,11 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the Conversion of format */
class convertTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the csrf.php file */
class csrfTest extends PHPUnit_Framework_TestCase
{
+7
View File
@@ -1,4 +1,11 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the dbjson database */
class dbjsonTest extends PHPUnit_Framework_TestCase
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
class dblayerTest{ENGINE} extends PHPUnit_Framework_TestCase
{
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
class dblayerauthzgroupsTest extends PHPUnit_Framework_TestCase
{
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
class dblayerooTest{ENGINE} extends PHPUnit_Framework_TestCase
{
+7
View File
@@ -1,4 +1,11 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the GetOpts */
class getoptsTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the http.php file */
class httpTest extends PHPUnit_Framework_TestCase
{
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the outputjson.php file */
class inifileTest extends PHPUnit_Framework_TestCase
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the ipaddresses.php file */
class ipaddressesTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the jwt.php file */
class jwtTest extends PHPUnit_Framework_TestCase
{
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the macaddresses.php file */
class macaddressesTest extends PHPUnit_Framework_TestCase
{
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the mail.php file */
class mailTest extends PHPUnit_Framework_TestCase
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the outputjson.php file */
class markdownTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the outputdl.php file */
class outputdlTest extends PHPUnit_Framework_TestCase
{
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the outputhtml.php file */
class outputhtmlTest extends PHPUnit_Framework_TestCase
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the outputjson.php file */
class outputjsonTest extends PHPUnit_Framework_TestCase
+8
View File
@@ -1,4 +1,12 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the password class
*/
class passwordTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the queue.php file */
class queueTest extends PHPUnit_Framework_TestCase
{
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the queuefile.php file */
class queuefileTest extends PHPUnit_Framework_TestCase
{
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the ratelimit.php file */
class ratelimitTest extends PHPUnit_Framework_TestCase
{
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the ratelimitfile.php file */
class ratelimitfileTest extends PHPUnit_Framework_TestCase
{
+4 -1
View File
@@ -1,9 +1,12 @@
<?php
/** DomFramework
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the domframework REST part */
class restTest extends PHPUnit_Framework_TestCase
{
+9 -1
View File
@@ -1,5 +1,13 @@
<?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
{
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the route.php file */
class routeTest extends PHPUnit_Framework_TestCase
+7
View File
@@ -1,4 +1,11 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the RSS */
class rssTest extends PHPUnit_Framework_TestCase
+8
View File
@@ -1,4 +1,12 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the sitemap.php file
*/
class sitemapTest extends PHPUnit_Framework_TestCase
+4 -1
View File
@@ -1,9 +1,12 @@
<?php
/** DomFramework
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the spfcheck tools
*/
class spfcheckTest extends PHPUnit_Framework_TestCase
+4 -1
View File
@@ -1,9 +1,12 @@
<?php
/** DomFramework
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the domframework Server-Sent Events part */
class sseTest extends PHPUnit_Framework_TestCase
{
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the TCP client */
class tcpclientTest extends PHPUnit_Framework_TestCase
{
+6 -2
View File
@@ -1,7 +1,11 @@
<?php
/** DomFramework - Tests
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the userssql.php file */
class userssqlTest extends PHPUnit_Framework_TestCase
+3
View File
@@ -2,8 +2,11 @@
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the uuid.php file */
class uuidTest extends PHPUnit_Framework_TestCase
{
+7
View File
@@ -1,4 +1,11 @@
<?php
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the Verify */
class verifyTest extends PHPUnit_Framework_TestCase
+4 -1
View File
@@ -1,9 +1,12 @@
<?php
/** DomFramework
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the domframework xdiff part */
class xdiffTest extends PHPUnit_Framework_TestCase
{
+4 -1
View File
@@ -1,9 +1,12 @@
<?php
/** DomFramework
/** DomFramework - Tests
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
* @license BSD
*/
namespace Domframework\Tests;
/** Test the domframework xmppclient part */
class xmppclientTest extends PHPUnit_Framework_TestCase
{
-5
View File
@@ -15,11 +15,6 @@
"require": {
"php": ">=7.0.0"
},
"scripts" : {
"post-file-download": [
"sed -i 's#//namespace Domframework#namespace Domframework#' *.php"
]
},
"autoload": {
"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