Commit a46d3971 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Test unitaires : passage à PHPUnit 5.6.

parent 502a0f9f
Loading
Loading
Loading
Loading
+1 −1
Changes for composer.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@
    "require-dev": {
        "zendframework/zend-test":              "2.4.*",
        "mpdf/mpdf":                            "v5.7.1",
        "phpunit/PHPUnit":                      ">=3.7"
        "phpunit/PHPUnit":                      "5.6"
    },
    "autoload": {
        "psr-0": { 
−3814

File deleted.

Preview size limit exceeded, changes collapsed.

+1 −1
Changes for tests/UnicaenAppTest/Controller/Plugin/BaseLdapServiceFactoryTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ abstract class BaseLdapServiceFactoryTest extends BaseServiceFactoryTest
        $this->serviceManager->expects($this->once())
                ->method('get')
                ->with($this->ldapServiceName)
                ->will($this->returnValue($this->getMock($this->ldapServiceClass, array())));
                ->will($this->returnValue($this->createMock($this->ldapServiceClass, array())));
        
        $this->pluginManager->expects($this->once())
                ->method('getServiceLocator')
+1 −1
Changes for tests/UnicaenAppTest/Controller/Plugin/BaseServiceFactoryTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -15,6 +15,6 @@ abstract class BaseServiceFactoryTest extends \UnicaenAppTest\BaseServiceFactory
    {
        parent::setUp();
        
        $this->pluginManager  = $this->getMock('\Zend\Mvc\Controller\PluginManager', array('getServiceLocator'));
        $this->pluginManager  = $this->createMock('\Zend\Mvc\Controller\PluginManager', array('getServiceLocator'));
    }
}
 No newline at end of file
+1 −1
Changes for tests/UnicaenAppTest/Controller/Plugin/LdapGroupServiceTest.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ class LdapGroupServiceTest extends PHPUnit_Framework_TestCase
{
    public function testInvokingPluginReturnsService()
    {
        $service = $this->getMock('UnicaenApp\Service\Ldap\Group');
        $service = $this->createMock('UnicaenApp\Service\Ldap\Group');
        $plugin = new LdapGroupService($service);
        $this->assertSame($service, $plugin() /* équivalent à $plugin->__invoke() */ );
    }
Loading