Commit 90f421d4 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

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

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