BaseServiceFactoryTest.php 747 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

namespace UnicaenAuthTest\Provider\Role;

use PHPUnit_Framework_TestCase;

/**
 * Description of ConfigServiceFactoryTest
 *
 * @author Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>
 */
abstract class BaseServiceFactoryTest extends PHPUnit_Framework_TestCase
{
    protected $serviceLocator;
    protected $factoryClass;
    protected $factory;
    protected $serviceClass;
            
    /**
     * 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();
        $this->serviceLocator = $this->getMock('Zend\ServiceManager\ServiceLocatorInterface', array());
    }
}