Update unit tests : $this->assertEquals -> $this->assertSame
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2563 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -22,7 +22,7 @@ class test_authhtpasswd extends PHPUnit_Framework_TestCase
|
||||
$authhtpasswd = new authhtpasswd ();
|
||||
$authhtpasswd->htpasswdFile = "/tmp/htpasswd.file";
|
||||
$res = $authhtpasswd->connect ();
|
||||
$this->assertEquals ($res, null);
|
||||
$this->assertSame ($res, null);
|
||||
}
|
||||
|
||||
public function test_authentication1 ()
|
||||
@@ -30,7 +30,7 @@ class test_authhtpasswd extends PHPUnit_Framework_TestCase
|
||||
$authhtpasswd = new authhtpasswd ();
|
||||
$authhtpasswd->htpasswdFile = "/tmp/htpasswd.file";
|
||||
$res = $authhtpasswd->authentication ("toto@toto.com", "toto123");
|
||||
$this->assertEquals ($res, true);
|
||||
$this->assertSame ($res, true);
|
||||
}
|
||||
|
||||
public function test_authentication2 ()
|
||||
@@ -54,6 +54,6 @@ class test_authhtpasswd extends PHPUnit_Framework_TestCase
|
||||
$authhtpasswd = new authhtpasswd ();
|
||||
$authhtpasswd->htpasswdFile = "/tmp/htpasswd.file";
|
||||
$res = $authhtpasswd->authentication ("titi@titi.com", "toto123");
|
||||
$this->assertEquals ($res, true);
|
||||
$this->assertSame ($res, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user