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:
2016-02-25 08:40:53 +00:00
parent 1ad99a3641
commit 24f99e6a69
3 changed files with 24 additions and 24 deletions

View File

@@ -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);
}
}