BaseServiceFactoryTest.php 712 Bytes
Newer Older
1 2 3 4
<?php

namespace UnicaenAuthTest\Provider\Role;

5
use PHPUnit\Framework\TestCase;
6 7 8 9 10 11

/**
 * Description of ConfigServiceFactoryTest
 *
 * @author Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>
 */
12
abstract class BaseServiceFactoryTest extends TestCase
13 14 15 16 17
{
    protected $serviceLocator;
    protected $factoryClass;
    protected $factory;
    protected $serviceClass;
18

19 20 21 22 23 24 25
    /**
     * Sets up the fixture, for example, open a network connection.
     * This method is called before a test is executed.
     */
    protected function setUp()
    {
        $this->factory        = new $this->factoryClass();
26
        $this->serviceLocator = $this->getMock('Zend\ServiceManager\ServiceLocatorInterface', []);
27 28
    }
}