Tests are now compliant with php-cs-fixer (CamelCase for method, phpdoc valid)
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
<?php
|
||||
|
||||
/** DomFramework - Tests
|
||||
* @package domframework
|
||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||
* @license BSD
|
||||
*/
|
||||
/**
|
||||
* DomFramework - Tests
|
||||
* @package domframework
|
||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||
* @license BSD
|
||||
*/
|
||||
|
||||
namespace Domframework\Tests;
|
||||
|
||||
use Domframework\Authhtpasswd;
|
||||
|
||||
/** Test the Authhtpasswd.php file */
|
||||
/**
|
||||
* Test the Authhtpasswd.php file
|
||||
*/
|
||||
class AuthhtpasswdTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function test_clean()
|
||||
public function testClean()
|
||||
{
|
||||
if (file_exists("/tmp/htpasswd.file")) {
|
||||
unlink("/tmp/htpasswd.file");
|
||||
@@ -27,7 +30,7 @@ class AuthhtpasswdTest extends \PHPUnit_Framework_TestCase
|
||||
);
|
||||
}
|
||||
|
||||
public function test_connect()
|
||||
public function testConnect()
|
||||
{
|
||||
$authhtpasswd = new Authhtpasswd();
|
||||
$authhtpasswd->htpasswdFile = "/tmp/htpasswd.file";
|
||||
@@ -35,7 +38,7 @@ class AuthhtpasswdTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertSame($res, null);
|
||||
}
|
||||
|
||||
public function test_authentication1()
|
||||
public function testAuthentication1()
|
||||
{
|
||||
$authhtpasswd = new Authhtpasswd();
|
||||
$authhtpasswd->htpasswdFile = "/tmp/htpasswd.file";
|
||||
@@ -43,7 +46,7 @@ class AuthhtpasswdTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertSame($res, true);
|
||||
}
|
||||
|
||||
public function test_authentication2()
|
||||
public function testAuthentication2()
|
||||
{
|
||||
$authhtpasswd = new Authhtpasswd();
|
||||
$authhtpasswd->htpasswdFile = "/tmp/htpasswd.file";
|
||||
@@ -51,7 +54,7 @@ class AuthhtpasswdTest extends \PHPUnit_Framework_TestCase
|
||||
$res = $authhtpasswd->authentication("UNKNOWN@toto.com", "toto123");
|
||||
}
|
||||
|
||||
public function test_authentication3()
|
||||
public function testAuthentication3()
|
||||
{
|
||||
$authhtpasswd = new Authhtpasswd();
|
||||
$authhtpasswd->htpasswdFile = "/tmp/htpasswd.file";
|
||||
@@ -59,7 +62,7 @@ class AuthhtpasswdTest extends \PHPUnit_Framework_TestCase
|
||||
$res = $authhtpasswd->authentication("toto@toto.com", "BAD PASSWD");
|
||||
}
|
||||
|
||||
public function test_authentication4()
|
||||
public function testAuthentication4()
|
||||
{
|
||||
$authhtpasswd = new Authhtpasswd();
|
||||
$authhtpasswd->htpasswdFile = "/tmp/htpasswd.file";
|
||||
|
||||
Reference in New Issue
Block a user