Skip to content
Snippets Groups Projects
Commit 90f421d4 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Test unitaire : correction méthode dépréciée.

parent fafec709
Branches
Tags
No related merge requests found
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
namespace UnicaenLdapTest; namespace UnicaenLdapTest;
use PHPUnit_Framework_TestCase; use PHPUnit_Framework_TestCase;
use Zend\ServiceManager\ServiceManager;
use UnicaenLdap\Ldap; use UnicaenLdap\Ldap;
use UnicaenLdap\Node; use UnicaenLdap\Node;
...@@ -21,7 +20,7 @@ class NodeTest extends PHPUnit_Framework_TestCase ...@@ -21,7 +20,7 @@ class NodeTest extends PHPUnit_Framework_TestCase
protected function setUp() protected function setUp()
{ {
$this->ldap = $this->getMock('UnicaenLdap\Ldap', array('getBaseDn')); $this->ldap = $this->createMock('UnicaenLdap\Ldap');
$this->ldap->expects($this->any()) $this->ldap->expects($this->any())
->method('getBaseDn') ->method('getBaseDn')
->will($this->returnValue('dc=unicaen,dc=fr')); ->will($this->returnValue('dc=unicaen,dc=fr'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment