/** * Sets up fixtures: * - _candidate object * - config and Database test doubles * - _factory * * This method is called before each test is executed. * * @return void */ protected function setUp() { parent::setUp(); $this->_configMap = array(array('useProjects', false), array('HeaderTable', null)); $this->_listOfTimePoints = array(array('ID' => '97'), array('ID' => '98')); $this->_configMock = $this->getMockBuilder('NDB_Config')->getMock(); $this->_dbMock = $this->getMockBuilder('Database')->getMock(); $this->_factory = NDB_Factory::singleton(); $this->_candidate = new Candidate(); $this->_factory->setConfig($this->_configMock); $this->_factory->setDatabase($this->_dbMock); }