1<?php 2/** 3 * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures 4 * all the essential functionalities required for any enterprise. 5 * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com 6 * 7 * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of 8 * the GNU General Public License as published by the Free Software Foundation; either 9 * version 2 of the License, or (at your option) any later version. 10 * 11 * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 12 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * See the GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License along with this program; 16 * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Boston, MA 02110-1301, USA 18 */ 19 20/** 21 * @group PerformanceTracker 22 */ 23class PerformanceTrackerServiceTest extends PHPUnit_Framework_TestCase { 24 25 private $testCase; 26 private $performanceTrackerDao; 27 private $performanceTrackerService; 28 private $fixture; 29 30 /** 31 * Set up method 32 */ 33 protected function setUp() { 34 $this->testCase = sfYaml::load(sfConfig::get('sf_plugins_dir') . '/orangehrmPimPlugin/test/fixtures/employee.yml'); 35 $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmPimPlugin/test/fixtures/EmployeeDao.yml'; 36 $this->performanceTrackerService = new PerformanceTrackerService(); 37 } 38 39 public function testGetSetPerformanceTrackerDao() { 40 $mockDao = $this->getMockBuilder('PerformanceTrackerDao')->getMock(); 41 42 $this->performanceTrackerService->setPerformanceTrackDao($mockDao); 43 $this->assertEquals($mockDao, $this->performanceTrackerService->getPerformanceTrackDao()); 44 45 } 46 47 48}