From ba62086a59fe351b4d67f5502a103ed9d186d778 Mon Sep 17 00:00:00 2001 From: Rajitha Kumara Date: Thu, 9 Jul 2020 20:36:05 +0530 Subject: [PATCH] Replace phpunit namespace --- phpunit.xml | 19 ++++++++++++++++++- .../PluginEmailConfiguration.class.php | 2 +- .../model/dao/CompanyStructureDaoTest.php | 4 ++-- .../test/model/dao/CountryDaoTest.php | 6 +++--- .../test/model/dao/CustomerDaoTest.php | 4 ++-- .../test/model/dao/EducationDaoTest.php | 4 ++-- .../model/dao/EmailNotificationDaoTest.php | 4 ++-- .../model/dao/EmploymentStatusDaoTest.php | 4 ++-- .../test/model/dao/JobCategoryDaoTest.php | 4 ++-- .../test/model/dao/JobTitleDaoTest.php | 4 ++-- .../test/model/dao/LanguageDaoTest.php | 4 ++-- .../test/model/dao/LicenseDaoTest.php | 4 ++-- .../test/model/dao/LocationDaoTest.php | 4 ++-- .../test/model/dao/MembershipDaoTest.php | 4 ++-- .../test/model/dao/ModuleDaoTest.php | 4 ++-- .../test/model/dao/NationalityDaoTest.php | 4 ++-- .../model/dao/OperationalCountryDaoTest.php | 6 +++--- .../test/model/dao/OrganizationDaoTest.php | 4 ++-- .../test/model/dao/PayGradeDaoTest.php | 4 ++-- .../test/model/dao/ProjectDaoTest.php | 4 ++-- .../test/model/dao/SkillDaoTest.php | 4 ++-- .../test/model/dao/SystemUserDaoTest.php | 6 +++--- .../test/model/dao/WorkShiftDaoTest.php | 4 ++-- .../test/model/service/CountryServiceTest.php | 6 +++--- .../model/service/CustomerServiceTest.php | 4 ++-- .../service/EmploymentStatusServiceTest.php | 4 ++-- .../model/service/JobCategoryServiceTest.php | 4 ++-- .../model/service/JobTitleServiceTest.php | 4 ++-- .../model/service/LocalizationServiceTest.php | 4 ++-- .../model/service/LocationServiceTest.php | 4 ++-- .../model/service/MembershipServiceTest.php | 4 ++-- .../model/service/NationalityServiceTest.php | 4 ++-- .../service/OperationalCountryServiceTest.php | 6 +++--- .../model/service/PayGradeServiceTest.php | 4 ++-- .../service/PimCsvDataImportServiceTest.php | 4 ++-- .../test/model/service/ProjectServiceTest.php | 4 ++-- .../model/service/SystemUserServiceTest.php | 4 ++-- .../model/service/WorkShiftServiceTest.php | 4 ++-- .../wrapper/AdminWebServiceWrapperTest.php | 6 +++--- .../test/orangehrmAdminPluginAllTests.php | 8 ++------ .../test/model/dao/AttendanceDaoTest.php | 4 ++-- .../model/service/AttendanceServiceTest.php | 6 +++--- .../orangehrmAttendancePluginAllTests.php | 10 +++++----- .../model/dao/BeaconConfigurationDaoTest.php | 4 ++-- .../test/model/dao/BeaconDatapointDaoTest.php | 4 ++-- .../model/dao/BeaconNotificationDaoTest.php | 4 ++-- .../BeaconCommunicationServiceTest.php | 4 ++-- .../BeaconConfigurationServiceTest.php | 4 ++-- .../service/BeaconDatapointServiceTest.php | 4 ++-- .../service/BeaconNotificationServiceTest.php | 4 ++-- .../test/orangehrmBeaconPluginAllTests.php | 6 +++--- .../processor/CountDataPointProcessorTest.php | 4 ++-- .../authorization/dao/DataGroupDaoTest.php | 4 ++-- .../authorization/dao/HomePageDaoTest.php | 4 ++-- .../test/authorization/dao/MenuDaoTest.php | 4 ++-- .../test/authorization/dao/ScreenDaoTest.php | 4 ++-- .../dao/ScreenPermissionDaoTest.php | 4 ++-- .../manager/BasicUserRoleManagerTest.php | 4 ++-- .../service/DataGroupServiceTest.php | 4 ++-- .../authorization/service/MenuServiceTest.php | 4 ++-- .../service/ScreenPermissionServiceTest.php | 4 ++-- .../service/UserRoleManagerServiceTest.php | 4 ++-- .../userrole/AdminUserRoleTest.php | 4 ++-- .../userrole/SupervisorUserRoleTest.php | 4 ++-- .../test/cache/ohrmKeyValueCacheTest.php | 6 +++--- .../test/components/ButtonTest.php | 6 +++--- .../test/components/CellTest.php | 6 +++--- .../test/components/CheckboxTest.php | 6 +++--- .../test/components/EnumCellFilterTest.php | 6 +++--- .../test/components/HeaderCellTest.php | 6 +++--- .../test/components/LabelCellTest.php | 6 +++--- .../test/components/LinkCellTest.php | 6 +++--- .../test/components/ListHeaderTest.php | 6 +++--- .../test/components/PropertyPopulatorTest.php | 6 +++--- .../components/SortableHeaderCellTest.php | 6 +++--- .../test/components/ohrmCellFilterTest.php | 6 +++--- .../test/components/ohrmListComponentTest.php | 6 +++--- .../test/dao/ConfigDaoTest.php | 4 ++-- .../test/dao/EmailDaoTest.php | 4 ++-- .../factory/SimpleUserRoleFactoryTest.php | 2 +- .../ohrmValidatorSchemaCompareTest.php | 2 +- .../widget/ohrmWidgetFormTimeRangeTest.php | 4 ++-- .../dao/AccessFlowStateMachineDaoTest.php | 4 ++-- .../test/model/dao/ReportableDaoTest.php | 4 ++-- .../PluginWorkflowStateMachineTest.php | 4 ++-- .../AccessFlowStateMachineServiceTest.php | 4 ++-- .../model/service/BaseServiceDataTest.php | 4 ++-- .../test/model/service/BaseServiceTest.php | 4 ++-- .../service/ReportGeneratorServiceTest.php | 4 ++-- .../model/service/ReportableServiceTest.php | 2 +- .../test/orangehrmCorePluginAllTests.php | 6 +++--- .../test/service/ConfigServiceTest.php | 4 ++-- .../test/utility/Base64UrlTest.php | 2 +- .../test/lib/dao/WSUtilityDaoTest.php | 6 +++--- .../test/lib/service/WSUtilityServiceTest.php | 6 +++--- .../test/lib/utility/WSHelperTest.php | 6 +++--- .../test/lib/utility/WSManagerTest.php | 8 ++++---- .../lib/utility/WSRequestParametersTest.php | 6 +++--- .../test/lib/utility/WSWrapperFactoryTest.php | 6 +++--- .../orangehrmCoreWebServicePluginAllTests.php | 6 +++--- .../model/dao/EmployeeDirectoryDaoTest.php | 4 ++-- .../service/EmployeeDirectoryServiceTest.php | 4 ++-- ...CorporateDirectoryWebServiceHelperTest.php | 4 ++-- ...orporateDirectoryWebServiceWrapperTest.php | 6 +++--- ...ngehrmCorporateDirectoryPluginAllTests.php | 6 +++--- ...FIFOEntitlementConsumptionStrategyTest.php | 4 ++-- .../test/mail/LeaveMailerTest.php | 4 ++-- ...OEntitlementConsumptionStrategyDaoTest.php | 4 ++-- .../test/model/dao/HolidayDaoTest.php | 4 ++-- .../model/dao/LeaveEntitlementDaoTest.php | 4 ++-- .../test/model/dao/LeavePeriodDaoTest.php | 4 ++-- .../model/dao/LeavePeriodHistoryDaoTest.php | 4 ++-- .../test/model/dao/LeaveRequestDaoTest.php | 4 ++-- .../test/model/dao/LeaveTypeDaoTest.php | 4 ++-- .../test/model/dao/WorkWeekDaoTest.php | 4 ++-- .../test/model/service/HolidayServiceTest.php | 4 ++-- .../service/LeaveConfigurationServiceTest.php | 4 ++-- .../service/LeaveEntitlementServiceTest.php | 4 ++-- .../service/LeavePeriodHistoryServiceTest.php | 4 ++-- .../LeavePeriodServiceGenerateEndDateTest.php | 4 ++-- ...eavePeriodServiceGenerateStartDateTest.php | 4 ++-- .../model/service/LeavePeriodServiceTest.php | 4 ++-- .../model/service/LeaveRequestServiceTest.php | 4 ++-- .../model/service/LeaveTypeServiceTest.php | 4 ++-- .../model/service/WorkScheduleServiceTest.php | 4 ++-- .../model/service/WorkWeekServiceTest.php | 4 ++-- .../test/orangehrmLeavePluginAllTests.php | 6 +++--- .../test/performance/LeavePerformanceTest.php | 2 +- .../test/model/dao/MaintenanceDaoTest.php | 4 ++-- .../model/service/MaintenanceServiceTest.php | 4 ++-- .../orangehrmMaintenancePluginAllTests.php | 4 ++-- .../test/model/dao/MarketplaceDaoTest.php | 4 ++-- .../model/service/APIManagerServiceTest.php | 4 ++-- .../model/service/MarketplaceServiceTest.php | 4 ++-- .../orangehrmMarketPlacePluginAllTests.php | 4 ++-- .../dao/AuthenticationProviderDaoTest.php | 4 ++-- .../model/dao/OpenIdAuthenticationDaoTest.php | 4 ++-- .../test/model/dao/OpenIdProviderDaoTest.php | 4 ++-- .../AuthenticationProviderServiceTest.php | 4 ++-- .../service/OpenIdProviderServiceTest.php | 4 ++-- ...ehrmOpenidAuthenticationPluginAllTests.php | 6 +++--- .../test/model/dao/KpiDaoTest.php | 4 ++-- .../model/dao/PerforamanceReviewDaoTest.php | 4 ++-- .../ReviewerGroupFactoryTest.php | 2 +- .../model/reviewerGroup/ReviewerGroupTest.php | 2 +- .../test/model/service/KpiServiceTest.php | 2 +- .../service/PerforamanceReviewServiceTest.php | 2 +- .../model/status/ReviewStatusFactoryTest.php | 2 +- .../test/model/status/ReviewStatusTest.php | 2 +- .../orangehrmPerformancePluginAllTests.php | 6 +++--- .../model/dao/PerformanceTrackerDaoTest.php | 4 ++-- .../service/PerformanceTrackerServiceTest.php | 4 ++-- ...ngehrmPerformanceTrackerPluginAllTests.php | 6 +++--- .../doctrine/PluginEmployeeSalary.class.php | 2 +- .../dao/CustomFieldConfigurationDaoTest.php | 4 ++-- .../dao/EmployeeDaoReportingChainTest.php | 4 ++-- .../test/model/dao/EmployeeDaoTest.php | 4 ++-- .../test/model/dao/EmployeeListDaoTest.php | 4 ++-- .../ReportingMethodConfigurationDaoTest.php | 4 ++-- .../TerminationReasonConfigurationDaoTest.php | 4 ++-- .../EmployeeSearchParameterHolderTest.php | 4 ++-- .../CustomFieldConfigurationServiceTest.php | 4 ++-- .../model/service/EmployeeServiceTest.php | 4 ++-- .../service/EmployeeYearsOfServiceTest.php | 4 ++-- .../model/service/PIMLeftMenuServiceTest.php | 4 ++-- .../test/orangehrmPimPluginAllTests.php | 6 +++--- .../test/api/ValidatorTest.php | 2 +- .../test/api/admin/ApiUserLoginAPITest.php | 4 ++-- .../test/api/admin/ApiUsersAPITest.php | 4 ++-- .../test/api/admin/entity/ApiUserTest.php | 4 ++-- .../api/leave/ApiLeaveEntitlementAPITest.php | 4 ++-- .../test/api/leave/ApiLeavePeriodAPITest.php | 4 ++-- .../test/api/leave/ApiLeaveTypeAPITest.php | 4 ++-- .../leave/entity/ApiLeaveEntitlementTest.php | 2 +- .../entity/ApiLeaveRequestCommentTest.php | 4 ++-- .../api/leave/entity/ApiLeaveRequestTest.php | 4 ++-- .../test/api/leave/entity/ApiLeaveTest.php | 4 ++-- .../api/leave/entity/ApiLeaveTypeTest.php | 4 ++-- .../test/api/pim/ApiCustomFieldAPITest1.php | 4 ++-- .../pim/ApiEmployeeContactDetailAPITest.php | 4 ++-- .../api/pim/ApiEmployeeCustomFieldAPITest.php | 4 ++-- .../api/pim/ApiEmployeeDependentAPITest.php | 4 ++-- .../test/api/pim/ApiEmployeeDetailAPITest.php | 4 ++-- .../api/pim/ApiEmployeeEducationAPITest.php | 4 ++-- .../api/pim/ApiEmployeeJobDetailAPITest.php | 4 ++-- .../test/api/pim/ApiEmployeeSaveAPITest.php | 2 +- .../test/api/pim/ApiEmployeeSearchAPITest.php | 4 ++-- .../api/pim/ApiEmployeeTerminateAPITest.php | 4 ++-- .../pim/ApiEmployeeWorkExperienceAPITest.php | 4 ++-- .../test/api/pim/ApiSupervisorAPITest.php | 4 ++-- .../api/pim/entity/ApiCustomFieldTest.php | 4 ++-- .../entity/ApiEmployeeContactDetailTest.php | 4 ++-- .../pim/entity/ApiEmployeeCustomFieldTest.php | 4 ++-- .../pim/entity/ApiEmployeeDependentTest.php | 4 ++-- .../pim/entity/ApiEmployeeJobDetailTest.php | 4 ++-- .../test/api/pim/entity/ApiEmployeeTest.php | 4 ++-- .../test/api/pim/entity/ApiSupervisorTest.php | 4 ++-- .../test/api/pim/entity/EmployeeTest.php | 4 ++-- .../test/http/HttpResponseTest.php | 4 ++-- .../test/http/RequestParamsTest.php | 2 +- .../model/service/HttpEmployeeServiceTest.php | 4 ++-- .../test/orangehrmRESTPluginAllTests.php | 6 +++--- .../test/model/dao/CandidateDaoTest.php | 4 ++-- .../test/model/dao/JobInterviewDaoTest.php | 4 ++-- .../dao/RecruitmentAttachmentDaoTest.php | 4 ++-- .../test/model/dao/VacancyDaoTest.php | 4 ++-- .../service/CandidateHistoryServiceTest.php | 4 ++-- .../model/service/CandidateServiceTest.php | 4 ++-- .../model/service/JobInterviewServiceTest.php | 4 ++-- .../RecruitmentAttachmentServiceTest.php | 4 ++-- .../test/model/service/VacancyServiceTest.php | 4 ++-- .../orangehrmRecruitmentPluginAllTests.php | 6 +++--- .../test/model/dao/PasswordResetDaoTest.php | 4 ++-- .../service/PasswordResetServiceTest.php | 4 ++-- ...rmSecurityAuthenticationPluginAllTests.php | 4 ++-- .../test/utility/PasswordHelperTest.php | 6 +++--- ...ecurityAuthenticationConfigServiceTest.php | 6 +++--- .../test/model/dao/TimesheetDaoTest.php | 4 ++-- .../test/model/dao/TimesheetPeriodDaoTest.php | 4 ++-- .../service/TimesheetPeriodServiceTest.php | 4 ++-- .../model/service/TimesheetServiceTest.php | 4 ++-- .../test/orangehrmTimePluginAllTests.php | 6 +++--- .../MonthlyTimesheetPeriodTest.php | 4 ++-- .../WeeklyTimesheetPeriodTest.php | 4 ++-- symfony/test/AppsOrangeHRMAllTests.php | 4 ++-- .../lib/utility/EncryptionListenerTest.php | 4 ++-- .../model/core/service/EmailServiceTest.php | 4 ++-- 227 files changed, 498 insertions(+), 485 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index c69bcfaef7..eda10d7941 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -19,7 +19,24 @@ - symfony/plugins/orangehrmAdminPlugin/test/model/service/CompanyStructureServiceTest.php + symfony/test/AppsOrangeHRMAllTests.php + symfony/plugins/orangehrmAdminPlugin/test/orangehrmAdminPluginAllTests.php + symfony/plugins/orangehrmAttendancePlugin/test/orangehrmAttendancePluginAllTests.php + symfony/plugins/orangehrmBeaconPlugin/test/orangehrmBeaconPluginAllTests.php + symfony/plugins/orangehrmCorePlugin/test/orangehrmCorePluginAllTests.php + symfony/plugins/orangehrmCoreWebServicePlugin/test/orangehrmCoreWebServicePluginAllTests.php + symfony/plugins/orangehrmCorporateDirectoryPlugin/test/orangehrmCorporateDirectoryPluginAllTests.php + symfony/plugins/orangehrmLeavePlugin/test/orangehrmLeavePluginAllTests.php + symfony/plugins/orangehrmMaintenancePlugin/test/orangehrmMaintenancePluginAllTests.php + symfony/plugins/orangehrmMarketPlacePlugin/test/orangehrmMarketPlacePluginAllTests.php + symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/orangehrmOpenidAuthenticationPluginAllTests.php + symfony/plugins/orangehrmPerformancePlugin/test/orangehrmPerformancePluginAllTests.php + symfony/plugins/orangehrmPerformanceTrackerPlugin/test/orangehrmPerformanceTrackerPluginAllTests.php + symfony/plugins/orangehrmPimPlugin/test/orangehrmPimPluginAllTests.php + symfony/plugins/orangehrmRecruitmentPlugin/test/orangehrmRecruitmentPluginAllTests.php + symfony/plugins/orangehrmRESTPlugin/test/orangehrmRESTPluginAllTests.php + symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/orangehrmSecurityAuthenticationPluginAllTests.php + symfony/plugins/orangehrmTimePlugin/test/orangehrmTimePluginAllTests.php diff --git a/symfony/plugins/orangehrmAdminPlugin/lib/model/doctrine/PluginEmailConfiguration.class.php b/symfony/plugins/orangehrmAdminPlugin/lib/model/doctrine/PluginEmailConfiguration.class.php index 5385d5797f..48f72fae59 100644 --- a/symfony/plugins/orangehrmAdminPlugin/lib/model/doctrine/PluginEmailConfiguration.class.php +++ b/symfony/plugins/orangehrmAdminPlugin/lib/model/doctrine/PluginEmailConfiguration.class.php @@ -14,7 +14,7 @@ */ abstract class PluginEmailConfiguration extends BaseEmailConfiguration { - public function setUp() { + public function setup(): void { parent::setup(); if (KeyHandler::keyExists()) { $key = KeyHandler::readKey(); diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/CompanyStructureDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/CompanyStructureDaoTest.php index 505397a4b8..9a70964708 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/CompanyStructureDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/CompanyStructureDaoTest.php @@ -23,7 +23,7 @@ /** * @group Admin */ -class CompanyStructureDaoTest extends PHPUnit_Framework_TestCase { +class CompanyStructureDaoTest extends PHPUnit\Framework\TestCase { private $companyStructureDao; protected $fixture; @@ -31,7 +31,7 @@ class CompanyStructureDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->companyStructureDao = new CompanyStructureDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/CompanyStructureDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/CountryDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/CountryDaoTest.php index e8e54a6565..98b85b76f6 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/CountryDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/CountryDaoTest.php @@ -4,7 +4,7 @@ * Test class for CountryDao. * Generated by PHPUnit on 2012-01-21 at 20:10:30. */ -class CountryDaoTest extends PHPUnit_Framework_TestCase { +class CountryDaoTest extends PHPUnit\Framework\TestCase { /** * @var CountryDao @@ -26,7 +26,7 @@ class CountryDaoTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->dao = new CountryDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/CountryDao.yml'; @@ -39,7 +39,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/CustomerDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/CustomerDaoTest.php index d06a04bada..1103ded13e 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/CustomerDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/CustomerDaoTest.php @@ -23,7 +23,7 @@ /** * @group Admin */ -class CustomerDaoTest extends PHPUnit_Framework_TestCase { +class CustomerDaoTest extends PHPUnit\Framework\TestCase { private $customerDao; protected $fixture; @@ -31,7 +31,7 @@ class CustomerDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->customerDao = new CustomerDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/ProjectDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/EducationDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/EducationDaoTest.php index 903a26d187..443d8f4c79 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/EducationDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/EducationDaoTest.php @@ -21,7 +21,7 @@ /** * @group Admin */ -class EducationDaoTest extends PHPUnit_Framework_TestCase { +class EducationDaoTest extends PHPUnit\Framework\TestCase { private $educationDao; protected $fixture; @@ -29,7 +29,7 @@ class EducationDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->educationDao = new EducationDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/EducationDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/EmailNotificationDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/EmailNotificationDaoTest.php index b38aba20b8..1b8da3ecae 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/EmailNotificationDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/EmailNotificationDaoTest.php @@ -19,7 +19,7 @@ */ require_once sfConfig::get('sf_test_dir') . '/util/TestDataService.php'; -class EmailNotificationDaoTest extends PHPUnit_Framework_TestCase { +class EmailNotificationDaoTest extends PHPUnit\Framework\TestCase { private $emailNotificationDao; protected $fixture; @@ -27,7 +27,7 @@ class EmailNotificationDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->emailNotificationDao = new EmailNotificationDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/EmailNotificationDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/EmploymentStatusDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/EmploymentStatusDaoTest.php index 14ad7d150c..a74e0886ed 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/EmploymentStatusDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/EmploymentStatusDaoTest.php @@ -23,7 +23,7 @@ /** * @group Admin */ -class EmploymentStatusDaoTest extends PHPUnit_Framework_TestCase { +class EmploymentStatusDaoTest extends PHPUnit\Framework\TestCase { private $empStatusDao; protected $fixture; @@ -31,7 +31,7 @@ class EmploymentStatusDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->empStatusDao = new EmploymentStatusDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/EmploymentStatusDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/JobCategoryDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/JobCategoryDaoTest.php index be54aec94a..209f8dc407 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/JobCategoryDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/JobCategoryDaoTest.php @@ -22,7 +22,7 @@ /** * @group Admin */ -class JobCategoryDaoTest extends PHPUnit_Framework_TestCase { +class JobCategoryDaoTest extends PHPUnit\Framework\TestCase { private $jobCatDao; protected $fixture; @@ -30,7 +30,7 @@ class JobCategoryDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->jobCatDao = new JobCategoryDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/JobCategoryDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/JobTitleDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/JobTitleDaoTest.php index 67f7050c72..fa200ccdfb 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/JobTitleDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/JobTitleDaoTest.php @@ -23,7 +23,7 @@ /** * @group Admin */ -class JobTitleDaoTest extends PHPUnit_Framework_TestCase { +class JobTitleDaoTest extends PHPUnit\Framework\TestCase { private $jobTitleDao; protected $fixture; @@ -31,7 +31,7 @@ class JobTitleDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->jobTitleDao = new JobTitleDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/JobTitleDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/LanguageDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/LanguageDaoTest.php index 59f501832c..5835fbea56 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/LanguageDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/LanguageDaoTest.php @@ -21,7 +21,7 @@ /** * @group Admin */ -class LanguageDaoTest extends PHPUnit_Framework_TestCase { +class LanguageDaoTest extends PHPUnit\Framework\TestCase { private $languageDao; protected $fixture; @@ -29,7 +29,7 @@ class LanguageDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->languageDao = new LanguageDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/LanguageDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/LicenseDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/LicenseDaoTest.php index f182e84650..5c7a6233d9 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/LicenseDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/LicenseDaoTest.php @@ -21,7 +21,7 @@ /** * @group Admin */ -class LicenseDaoTest extends PHPUnit_Framework_TestCase { +class LicenseDaoTest extends PHPUnit\Framework\TestCase { private $licenseDao; protected $fixture; @@ -29,7 +29,7 @@ class LicenseDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->licenseDao = new LicenseDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/LicenseDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/LocationDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/LocationDaoTest.php index d31f3e10ab..46e363ae14 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/LocationDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/LocationDaoTest.php @@ -22,7 +22,7 @@ /** * @group Admin */ -class LocationDaoTest extends PHPUnit_Framework_TestCase { +class LocationDaoTest extends PHPUnit\Framework\TestCase { private $locationDao; protected $fixture; @@ -30,7 +30,7 @@ class LocationDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->locationDao = new LocationDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/LocationDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/MembershipDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/MembershipDaoTest.php index c9b296ac7c..d6171e9a07 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/MembershipDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/MembershipDaoTest.php @@ -22,7 +22,7 @@ /** * @group Admin */ -class MembershipDaoTest extends PHPUnit_Framework_TestCase { +class MembershipDaoTest extends PHPUnit\Framework\TestCase { private $membershipDao; protected $fixture; @@ -30,7 +30,7 @@ class MembershipDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->membershipDao = new MembershipDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/MembershipDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/ModuleDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/ModuleDaoTest.php index e3e6872a1c..d80949b2f9 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/ModuleDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/ModuleDaoTest.php @@ -23,7 +23,7 @@ /** * @group Admin */ -class ModuleDaoTest extends PHPUnit_Framework_TestCase { +class ModuleDaoTest extends PHPUnit\Framework\TestCase { private $moduleDao; protected $fixture; @@ -31,7 +31,7 @@ class ModuleDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->moduleDao = new ModuleDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/ModuleDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/NationalityDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/NationalityDaoTest.php index 2dccccef93..80eefcafd6 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/NationalityDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/NationalityDaoTest.php @@ -22,7 +22,7 @@ /** * @group Admin */ -class NationalityDaoTest extends PHPUnit_Framework_TestCase { +class NationalityDaoTest extends PHPUnit\Framework\TestCase { private $nationalityDao; protected $fixture; @@ -30,7 +30,7 @@ class NationalityDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->nationalityDao = new NationalityDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/NationalityDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/OperationalCountryDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/OperationalCountryDaoTest.php index 2b04d14531..ad32d5c22f 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/OperationalCountryDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/OperationalCountryDaoTest.php @@ -4,7 +4,7 @@ * Test class for OperationalCountryDao. * Generated by PHPUnit on 2012-01-12 at 12:47:49. */ -class OperationalCountryDaoTest extends PHPUnit_Framework_TestCase { +class OperationalCountryDaoTest extends PHPUnit\Framework\TestCase { /** * @var OperationalCountryDao @@ -16,7 +16,7 @@ class OperationalCountryDaoTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->dao = new OperationalCountryDao; $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/OperationalCountryDao.yml'; TestDataService::populate($this->fixture); @@ -26,7 +26,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/OrganizationDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/OrganizationDaoTest.php index fdcea9b8cf..4b774bafd3 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/OrganizationDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/OrganizationDaoTest.php @@ -23,7 +23,7 @@ /** * @group Admin */ -class OrganizationDaoTest extends PHPUnit_Framework_TestCase { +class OrganizationDaoTest extends PHPUnit\Framework\TestCase { private $organizationDao; protected $fixture; @@ -31,7 +31,7 @@ class OrganizationDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->organizationDao = new OrganizationDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/OrganizationDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/PayGradeDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/PayGradeDaoTest.php index a331d8937c..856859b5c6 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/PayGradeDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/PayGradeDaoTest.php @@ -22,7 +22,7 @@ /** * @group Admin */ -class PayGradeDaoTest extends PHPUnit_Framework_TestCase { +class PayGradeDaoTest extends PHPUnit\Framework\TestCase { private $payGradeDao; protected $fixture; @@ -30,7 +30,7 @@ class PayGradeDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->payGradeDao = new PayGradeDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/PayGradeDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/ProjectDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/ProjectDaoTest.php index d1a84db104..fc9eb8bd1f 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/ProjectDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/ProjectDaoTest.php @@ -23,7 +23,7 @@ /** * @group Admin */ -class ProjectDaoTest extends PHPUnit_Framework_TestCase { +class ProjectDaoTest extends PHPUnit\Framework\TestCase { private $projectDao; protected $fixture; @@ -31,7 +31,7 @@ class ProjectDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->projectDao = new ProjectDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/ProjectDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/SkillDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/SkillDaoTest.php index 733e75b2c6..17133bc46f 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/SkillDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/SkillDaoTest.php @@ -23,7 +23,7 @@ /** * @group Admin */ -class SkillDaoTest extends PHPUnit_Framework_TestCase { +class SkillDaoTest extends PHPUnit\Framework\TestCase { private $skillDao; protected $fixture; @@ -31,7 +31,7 @@ class SkillDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->skillDao = new SkillDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/SkillDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/SystemUserDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/SystemUserDaoTest.php index 4193ecab77..19e5826dfa 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/SystemUserDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/SystemUserDaoTest.php @@ -21,7 +21,7 @@ /** * @group Admin */ -class SystemUserDaoTest extends PHPUnit_Framework_TestCase { +class SystemUserDaoTest extends PHPUnit\Framework\TestCase { private $systemUserDao; protected $fixture; @@ -29,8 +29,8 @@ class SystemUserDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { - + protected function setUp() : void + { $this->systemUserDao = new SystemUserDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/SystemUser.yml'; TestDataService::truncateSpecificTables(array('SystemUser')); diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/WorkShiftDaoTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/WorkShiftDaoTest.php index e1e328cccf..70ef0737bc 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/dao/WorkShiftDaoTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/dao/WorkShiftDaoTest.php @@ -22,7 +22,7 @@ /** * @group Admin */ -class WorkShiftDaoTest extends PHPUnit_Framework_TestCase { +class WorkShiftDaoTest extends PHPUnit\Framework\TestCase { private $workShiftDao; protected $fixture; @@ -30,7 +30,7 @@ class WorkShiftDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->workShiftDao = new WorkShiftDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/WorkShiftDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/CountryServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/CountryServiceTest.php index 67b8fb6061..c096c4b477 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/CountryServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/CountryServiceTest.php @@ -4,7 +4,7 @@ * Test class for CountryService. * Generated by PHPUnit on 2012-01-21 at 19:45:40. */ -class CountryServiceTest extends PHPUnit_Framework_TestCase { +class CountryServiceTest extends PHPUnit\Framework\TestCase { /** * @var CountryService @@ -15,7 +15,7 @@ class CountryServiceTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->service = new CountryService; } @@ -23,7 +23,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/CustomerServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/CustomerServiceTest.php index cc3f168d48..83c979683c 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/CustomerServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/CustomerServiceTest.php @@ -23,7 +23,7 @@ /** * @group Admin */ -class CustomerServiceTest extends PHPUnit_Framework_TestCase { +class CustomerServiceTest extends PHPUnit\Framework\TestCase { private $customerService; private $fixture; @@ -31,7 +31,7 @@ class CustomerServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->customerService = new CustomerService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/ProjectDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/EmploymentStatusServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/EmploymentStatusServiceTest.php index 99fcd831d9..c31d2f8d6a 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/EmploymentStatusServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/EmploymentStatusServiceTest.php @@ -22,7 +22,7 @@ /** * @group Admin */ -class EmploymentStatusServiceTest extends PHPUnit_Framework_TestCase { +class EmploymentStatusServiceTest extends PHPUnit\Framework\TestCase { private $empStatService; private $fixture; @@ -30,7 +30,7 @@ class EmploymentStatusServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->empStatService = new EmploymentStatusService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/EmploymentStatusDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/JobCategoryServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/JobCategoryServiceTest.php index 9a62e14113..472ab78d1c 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/JobCategoryServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/JobCategoryServiceTest.php @@ -22,7 +22,7 @@ /** * @group Admin */ -class JobCategoryServiceTest extends PHPUnit_Framework_TestCase { +class JobCategoryServiceTest extends PHPUnit\Framework\TestCase { private $jobCatService; private $fixture; @@ -30,7 +30,7 @@ class JobCategoryServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->jobCatService = new JobCategoryService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/JobCategoryDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/JobTitleServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/JobTitleServiceTest.php index 4271e156c9..343cbcc6d1 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/JobTitleServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/JobTitleServiceTest.php @@ -23,7 +23,7 @@ /** * @group Admin */ -class JobTitleServiceTest extends PHPUnit_Framework_TestCase { +class JobTitleServiceTest extends PHPUnit\Framework\TestCase { private $JobTitleService; protected $fixture; @@ -31,7 +31,7 @@ class JobTitleServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->JobTitleService = new JobTitleService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/JobTitleDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/LocalizationServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/LocalizationServiceTest.php index 264b5dfe19..93798362ad 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/LocalizationServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/LocalizationServiceTest.php @@ -23,14 +23,14 @@ /** * @group Admin */ -class LocalizationServiceTest extends PHPUnit_Framework_TestCase { +class LocalizationServiceTest extends PHPUnit\Framework\TestCase { private $localizationService; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->localizationService = new LocalizationService(); } diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/LocationServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/LocationServiceTest.php index ddd2d6ecd4..3d737cab72 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/LocationServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/LocationServiceTest.php @@ -23,7 +23,7 @@ /** * @group Admin */ -class LocationServiceTest extends PHPUnit_Framework_TestCase { +class LocationServiceTest extends PHPUnit\Framework\TestCase { private $locationService; private $fixture; @@ -31,7 +31,7 @@ class LocationServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->locationService = new LocationService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/LocationDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/MembershipServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/MembershipServiceTest.php index 8d7f387ea7..5ae714115e 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/MembershipServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/MembershipServiceTest.php @@ -22,7 +22,7 @@ /** * @group Admin */ -class MembershipServiceTest extends PHPUnit_Framework_TestCase { +class MembershipServiceTest extends PHPUnit\Framework\TestCase { private $membershipService; private $fixture; @@ -30,7 +30,7 @@ class MembershipServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->membershipService = new MembershipService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/MembershipDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/NationalityServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/NationalityServiceTest.php index 94dd5b989c..73e7f9fa67 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/NationalityServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/NationalityServiceTest.php @@ -22,7 +22,7 @@ /** * @group Admin */ -class NationalityServiceTest extends PHPUnit_Framework_TestCase { +class NationalityServiceTest extends PHPUnit\Framework\TestCase { private $nationalityService; private $fixture; @@ -30,7 +30,7 @@ class NationalityServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->nationalityService = new NationalityService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/NationalityDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/OperationalCountryServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/OperationalCountryServiceTest.php index 1dd8f2eb3b..0c324d3420 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/OperationalCountryServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/OperationalCountryServiceTest.php @@ -4,7 +4,7 @@ * Test class for OperationalCountryService. * Generated by PHPUnit on 2012-01-12 at 12:46:56. */ -class OperationalCountryServiceTest extends PHPUnit_Framework_TestCase { +class OperationalCountryServiceTest extends PHPUnit\Framework\TestCase { /** * @var OperationalCountryService @@ -15,7 +15,7 @@ class OperationalCountryServiceTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->service = new OperationalCountryService; } @@ -23,7 +23,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/PayGradeServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/PayGradeServiceTest.php index 4af48d7fca..071c3a9ca1 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/PayGradeServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/PayGradeServiceTest.php @@ -22,7 +22,7 @@ /** * @group Admin */ -class PayGradeServiceTest extends PHPUnit_Framework_TestCase { +class PayGradeServiceTest extends PHPUnit\Framework\TestCase { private $payGradeService; protected $fixture; @@ -30,7 +30,7 @@ class PayGradeServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->payGradeService = new PayGradeService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/PayGradeDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/PimCsvDataImportServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/PimCsvDataImportServiceTest.php index f2a1ab353a..7e1553b65f 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/PimCsvDataImportServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/PimCsvDataImportServiceTest.php @@ -23,14 +23,14 @@ /** * @group Admin */ -class PimCsvDataImportServiceTest extends PHPUnit_Framework_TestCase { +class PimCsvDataImportServiceTest extends PHPUnit\Framework\TestCase { private $pimDataImportService; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->pimDataImportService = new PimCsvDataImportService(); } diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/ProjectServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/ProjectServiceTest.php index e572838790..fcf2c4b92f 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/ProjectServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/ProjectServiceTest.php @@ -23,7 +23,7 @@ /** * @group Admin */ -class ProjectServiceTest extends PHPUnit_Framework_TestCase { +class ProjectServiceTest extends PHPUnit\Framework\TestCase { private $projectService; private $fixture; @@ -31,7 +31,7 @@ class ProjectServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->projectService = new ProjectService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/ProjectDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/SystemUserServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/SystemUserServiceTest.php index 4f0886f3be..af60455618 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/SystemUserServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/SystemUserServiceTest.php @@ -22,7 +22,7 @@ * Description of SystemUserServiceTest * */ -class SystemUserServiceTest extends PHPUnit_Framework_TestCase { +class SystemUserServiceTest extends PHPUnit\Framework\TestCase { /** @property SystemUserService $systemUserService */ private $systemUserService; @@ -30,7 +30,7 @@ class SystemUserServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->systemUserService = new SystemUserService(); } diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/service/WorkShiftServiceTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/service/WorkShiftServiceTest.php index db01658e94..cfde64bf71 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/service/WorkShiftServiceTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/service/WorkShiftServiceTest.php @@ -22,7 +22,7 @@ /** * @group Admin */ -class WorkShiftServiceTest extends PHPUnit_Framework_TestCase { +class WorkShiftServiceTest extends PHPUnit\Framework\TestCase { private $workShiftService; private $fixture; @@ -30,7 +30,7 @@ class WorkShiftServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->workShiftService = new WorkShiftService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/WorkShiftDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmAdminPlugin/test/model/wrapper/AdminWebServiceWrapperTest.php b/symfony/plugins/orangehrmAdminPlugin/test/model/wrapper/AdminWebServiceWrapperTest.php index 81a4ef2b62..df1c8026e9 100644 --- a/symfony/plugins/orangehrmAdminPlugin/test/model/wrapper/AdminWebServiceWrapperTest.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/model/wrapper/AdminWebServiceWrapperTest.php @@ -13,21 +13,21 @@ */ require_once ROOT_PATH . "/lib/confs/Conf.php"; -class AdminWebServiceWrapperTest extends PHPUnit_Framework_TestCase { +class AdminWebServiceWrapperTest extends PHPUnit\Framework\TestCase { protected $jobTitlefixture; protected $manager; protected $adminWebServiceWrapper; protected $locationFixture; protected $locationTestCases; - public static function setupBeforeClass() { + public static function setupBeforeClass():void { WSManager::resetConfiguration(); } /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->adminWebServiceWrapper = new AdminWebServiceWrapper(); $this->jobTitlefixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/JobTitleDao.yml'; $this->locationFixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAdminPlugin/test/fixtures/LocationDao.yml'; diff --git a/symfony/plugins/orangehrmAdminPlugin/test/orangehrmAdminPluginAllTests.php b/symfony/plugins/orangehrmAdminPlugin/test/orangehrmAdminPluginAllTests.php index a6a42b3c6d..38e4ca87d2 100755 --- a/symfony/plugins/orangehrmAdminPlugin/test/orangehrmAdminPluginAllTests.php +++ b/symfony/plugins/orangehrmAdminPlugin/test/orangehrmAdminPluginAllTests.php @@ -18,12 +18,8 @@ */ class orangehrmAdminPluginAllTests { - protected function setUp() { - - } - public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmCoreLeavePluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmCoreLeavePluginAllTest'); /* Dao Test Cases */ $suite->addTestFile(dirname(__FILE__) . '/model/dao/SystemUserDaoTest.php'); @@ -73,7 +69,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmAttendancePlugin/test/model/dao/AttendanceDaoTest.php b/symfony/plugins/orangehrmAttendancePlugin/test/model/dao/AttendanceDaoTest.php index f1c107e2d1..8c72aec0e9 100755 --- a/symfony/plugins/orangehrmAttendancePlugin/test/model/dao/AttendanceDaoTest.php +++ b/symfony/plugins/orangehrmAttendancePlugin/test/model/dao/AttendanceDaoTest.php @@ -21,14 +21,14 @@ /** * @group Attendance */ -class AttendanceDaoTest extends PHPUnit_Framework_TestCase { +class AttendanceDaoTest extends PHPUnit\Framework\TestCase { private $attendanceDao; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->attendanceDao = new AttendanceDao(); TestDataService::truncateSpecificTables(array('AttendanceRecord','Employee')); diff --git a/symfony/plugins/orangehrmAttendancePlugin/test/model/service/AttendanceServiceTest.php b/symfony/plugins/orangehrmAttendancePlugin/test/model/service/AttendanceServiceTest.php index 918b543252..ffe446ba4c 100755 --- a/symfony/plugins/orangehrmAttendancePlugin/test/model/service/AttendanceServiceTest.php +++ b/symfony/plugins/orangehrmAttendancePlugin/test/model/service/AttendanceServiceTest.php @@ -3,12 +3,12 @@ /** * @group Attendance */ -class AttendanceServiceTest extends PHPUnit_Framework_Testcase { +class AttendanceServiceTest extends PHPUnit\Framework\TestCase { private $attendanceService; private $fixture; - protected function setUp() { + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmAttendancePlugin/test/fixtures/AttendanceService.yml'; @@ -244,7 +244,7 @@ public function testGetTimezone() { $this->assertEquals('9.5', $this->attendanceService->getTimezone($value)); $value = 16; - $this->assertEquals('-10', $this->attendanceService->getTimezone($value)); + $this->assertEquals('-10.00', $this->attendanceService->getTimezone($value)); $value = 22; $this->assertEquals('-4.00', $this->attendanceService->getTimezone($value)); diff --git a/symfony/plugins/orangehrmAttendancePlugin/test/orangehrmAttendancePluginAllTests.php b/symfony/plugins/orangehrmAttendancePlugin/test/orangehrmAttendancePluginAllTests.php index 2ffc782d6c..89f7717065 100755 --- a/symfony/plugins/orangehrmAttendancePlugin/test/orangehrmAttendancePluginAllTests.php +++ b/symfony/plugins/orangehrmAttendancePlugin/test/orangehrmAttendancePluginAllTests.php @@ -21,12 +21,12 @@ */ class orangehrmAttendancePluginAllTests { - protected function setUp() { - - } +// protected function setUp() :void { +// +// } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmAttendancePluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmAttendancePluginAllTest'); /* Dao Test Cases */ $suite->addTestFile(dirname(__FILE__) . '/model/dao/AttendanceDaoTest.php'); @@ -40,7 +40,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } diff --git a/symfony/plugins/orangehrmBeaconPlugin/test/model/dao/BeaconConfigurationDaoTest.php b/symfony/plugins/orangehrmBeaconPlugin/test/model/dao/BeaconConfigurationDaoTest.php index 68de521f98..d8512c2de3 100644 --- a/symfony/plugins/orangehrmBeaconPlugin/test/model/dao/BeaconConfigurationDaoTest.php +++ b/symfony/plugins/orangehrmBeaconPlugin/test/model/dao/BeaconConfigurationDaoTest.php @@ -11,12 +11,12 @@ * * @group beacon */ -class BeaconConfigurationDaoTest extends PHPUnit_Framework_TestCase{ +class BeaconConfigurationDaoTest extends PHPUnit\Framework\TestCase{ private $beaconConfigDao; private $fixture; - protected function setUp() { + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmBeaconPlugin/test/fixtures/BeaconConfigurationDao.yml'; TestDataService::populate($this->fixture); $this->beaconConfigDao = new BeaconConfigurationDao(); diff --git a/symfony/plugins/orangehrmBeaconPlugin/test/model/dao/BeaconDatapointDaoTest.php b/symfony/plugins/orangehrmBeaconPlugin/test/model/dao/BeaconDatapointDaoTest.php index 3a4ea0b7ae..fe8f35512d 100755 --- a/symfony/plugins/orangehrmBeaconPlugin/test/model/dao/BeaconDatapointDaoTest.php +++ b/symfony/plugins/orangehrmBeaconPlugin/test/model/dao/BeaconDatapointDaoTest.php @@ -12,11 +12,11 @@ * @group beacon * */ -class BeaconDatapointDaoTest extends PHPUnit_Framework_TestCase{ +class BeaconDatapointDaoTest extends PHPUnit\Framework\TestCase{ private $beaconDatapointDao; - protected function setUp() { + protected function setUp() :void { $this->beaconDatapointDao = new BeaconDatapointDao(); TestDataService::populate(sfConfig::get('sf_plugins_dir') . '/orangehrmBeaconPlugin/test/fixtures/BeaconDatapointDao.yml'); diff --git a/symfony/plugins/orangehrmBeaconPlugin/test/model/dao/BeaconNotificationDaoTest.php b/symfony/plugins/orangehrmBeaconPlugin/test/model/dao/BeaconNotificationDaoTest.php index 74a793728a..8b1faf4694 100755 --- a/symfony/plugins/orangehrmBeaconPlugin/test/model/dao/BeaconNotificationDaoTest.php +++ b/symfony/plugins/orangehrmBeaconPlugin/test/model/dao/BeaconNotificationDaoTest.php @@ -11,10 +11,10 @@ * * @group beacon */ -class BeaconNotificationDaoTest extends PHPUnit_Framework_TestCase{ +class BeaconNotificationDaoTest extends PHPUnit\Framework\TestCase{ private $beaconNotificationDao; - public function setUp() { + public function setUp(): void { $this->beaconNotificationDao = new BeaconNotificationDao(); TestDataService::populate(sfConfig::get('sf_plugins_dir'). '/orangehrmBeaconPlugin/test/fixtures/BeaconNotificationDao.yml'); diff --git a/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconCommunicationServiceTest.php b/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconCommunicationServiceTest.php index 5c5d346889..d0446045f8 100644 --- a/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconCommunicationServiceTest.php +++ b/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconCommunicationServiceTest.php @@ -11,13 +11,13 @@ * * @group beacon */ -class BeaconCommunicationServiceTest extends PHPUnit_Framework_TestCase { +class BeaconCommunicationServiceTest extends PHPUnit\Framework\TestCase { protected $beaconCommunicationService; protected $beaconConfigService; protected $fixture; - public function setUp() { + public function setUp(): void { $this->beaconCommunicationService = new BeaconCommunicationsService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmBeaconPlugin/test/fixtures/BeaconDatapointService.yml'; $this->beaconConfigService = $this->getMockBuilder('BeaconConfigService')->setMethods(array('setBeaconLock', 'getBeaconLock', 'getBeaconActivationAcceptanceStatus', 'getBeaconActivationStatus', 'getBeaconNextFlashTime', 'changeConfigTable', 'resolveNotificationMessages'))->getMock(); diff --git a/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconConfigurationServiceTest.php b/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconConfigurationServiceTest.php index 12926807f2..6bcd377a65 100644 --- a/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconConfigurationServiceTest.php +++ b/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconConfigurationServiceTest.php @@ -11,12 +11,12 @@ * * @group beacon */ -class BeaconConfigurationServiceTest extends PHPUnit_Framework_TestCase{ +class BeaconConfigurationServiceTest extends PHPUnit\Framework\TestCase{ protected $fixture; protected $beaconConfigurationService; - public function setUp() { + public function setUp(): void { $this->beaconConfigurationService = new BeaconConfigurationService(); $this->fixture = sfConfig::get('sf_plugins_dir').'/orangehrmBeaconPlugin/test/fixtures/BeaconConfigurationService.yml'; diff --git a/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconDatapointServiceTest.php b/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconDatapointServiceTest.php index 8fc032a77f..a0c44e2a9a 100755 --- a/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconDatapointServiceTest.php +++ b/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconDatapointServiceTest.php @@ -11,12 +11,12 @@ * * @group beacon */ -class BeaconDatapointServiceTest extends PHPUnit_Framework_TestCase { +class BeaconDatapointServiceTest extends PHPUnit\Framework\TestCase { protected $beaconDatapointService; protected $fixture; - public function setUp() { + public function setUp(): void { $this->beaconDatapointService = new BeaconDatapointService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmBeaconPlugin/test/fixtures/BeaconDatapointService.yml'; } diff --git a/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconNotificationServiceTest.php b/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconNotificationServiceTest.php index 81726cefe8..081ea703de 100755 --- a/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconNotificationServiceTest.php +++ b/symfony/plugins/orangehrmBeaconPlugin/test/model/service/BeaconNotificationServiceTest.php @@ -12,11 +12,11 @@ * @author chathura * @group beacon */ -class BeaconNotificationServiceTest extends PHPUnit_Framework_TestCase { +class BeaconNotificationServiceTest extends PHPUnit\Framework\TestCase { protected $beaconNotificationService; protected $fixture; - public function setUp() { + public function setUp(): void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmBeaconPlugin/test/fixtures/BeaconNotificationService.yml'; $this->beaconNotificationService = new BeaconNotificationService(); diff --git a/symfony/plugins/orangehrmBeaconPlugin/test/orangehrmBeaconPluginAllTests.php b/symfony/plugins/orangehrmBeaconPlugin/test/orangehrmBeaconPluginAllTests.php index 149d51a577..97fc16ebdf 100755 --- a/symfony/plugins/orangehrmBeaconPlugin/test/orangehrmBeaconPluginAllTests.php +++ b/symfony/plugins/orangehrmBeaconPlugin/test/orangehrmBeaconPluginAllTests.php @@ -3,14 +3,14 @@ class orangehrmBeaconPluginAllTests { - protected function setUp() { + protected function setUp() :void { } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmBeaconPluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmBeaconPluginAllTest'); //$suite->addTestFile(dirname(__FILE__) . ''; @@ -35,7 +35,7 @@ public static function suite() { public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } diff --git a/symfony/plugins/orangehrmBeaconPlugin/test/processor/CountDataPointProcessorTest.php b/symfony/plugins/orangehrmBeaconPlugin/test/processor/CountDataPointProcessorTest.php index bbb474eb22..6ea8959f25 100755 --- a/symfony/plugins/orangehrmBeaconPlugin/test/processor/CountDataPointProcessorTest.php +++ b/symfony/plugins/orangehrmBeaconPlugin/test/processor/CountDataPointProcessorTest.php @@ -11,11 +11,11 @@ * * @group beacon */ -class CountDataPointProcessorTest extends PHPUnit_Framework_TestCase { +class CountDataPointProcessorTest extends PHPUnit\Framework\TestCase { private $datapoints; - protected function setUp() { + protected function setUp() :void { $this->datapoints = sfYaml::load(sfConfig::get('sf_plugins_dir') . '/orangehrmBeaconPlugin/test/fixtures/BeaconDatapointDao.yml'); } diff --git a/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/DataGroupDaoTest.php b/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/DataGroupDaoTest.php index ac410c088b..65c3673df5 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/DataGroupDaoTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/DataGroupDaoTest.php @@ -22,7 +22,7 @@ * Description of DataGroupDaoTest * @group Core */ -class DataGroupDaoTest extends PHPUnit_Framework_TestCase { +class DataGroupDaoTest extends PHPUnit\Framework\TestCase { /** @property ScreenPermissionDao $dao */ private $dao; @@ -30,7 +30,7 @@ class DataGroupDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/DataGroupDao.yml'; TestDataService::truncateSpecificTables(array('SystemUser')); TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/HomePageDaoTest.php b/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/HomePageDaoTest.php index cd9136c4f7..0423c400ef 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/HomePageDaoTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/HomePageDaoTest.php @@ -22,7 +22,7 @@ /** * Test class for home page dao */ -class HomePageDaoTest extends PHPUnit_Framework_TestCase { +class HomePageDaoTest extends PHPUnit\Framework\TestCase { private $homePageDao; private $fixture; @@ -31,7 +31,7 @@ class HomePageDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { TestDataService::truncateTables(array('ModuleDefaultPage', 'HomePage', 'UserRole', 'Module')); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/HomePageDao.yml'; diff --git a/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/MenuDaoTest.php b/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/MenuDaoTest.php index de07f72735..c61aec2ab4 100755 --- a/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/MenuDaoTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/MenuDaoTest.php @@ -22,7 +22,7 @@ * Description of MenuDaoTest * @group Core */ -class MenuDaoTest extends PHPUnit_Framework_TestCase { +class MenuDaoTest extends PHPUnit\Framework\TestCase { /** * @var MenuDao @@ -32,7 +32,7 @@ class MenuDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/MenuDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/ScreenDaoTest.php b/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/ScreenDaoTest.php index 15520904d8..f37044f79f 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/ScreenDaoTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/ScreenDaoTest.php @@ -22,7 +22,7 @@ * Description of ScreenDaoTest * @group Core */ -class ScreenDaoTest extends PHPUnit_Framework_TestCase { +class ScreenDaoTest extends PHPUnit\Framework\TestCase { /** @property ScreenPermissionDao $dao */ private $dao; @@ -30,7 +30,7 @@ class ScreenDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/ScreenDao.yml'; TestDataService::truncateSpecificTables(array('SystemUser')); TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/ScreenPermissionDaoTest.php b/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/ScreenPermissionDaoTest.php index f8cc93e236..e70c8597b1 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/ScreenPermissionDaoTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/authorization/dao/ScreenPermissionDaoTest.php @@ -22,7 +22,7 @@ * Description of ScreenPermissionDaoTest * @group Core */ -class ScreenPermissionDaoTest extends PHPUnit_Framework_TestCase { +class ScreenPermissionDaoTest extends PHPUnit\Framework\TestCase { /** @property ScreenPermissionDao $dao */ private $dao; @@ -30,7 +30,7 @@ class ScreenPermissionDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/ScreenPermissionDao.yml'; TestDataService::truncateSpecificTables(array('SystemUser')); TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmCorePlugin/test/authorization/manager/BasicUserRoleManagerTest.php b/symfony/plugins/orangehrmCorePlugin/test/authorization/manager/BasicUserRoleManagerTest.php index 6e8e5dd837..ef1667b2f7 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/authorization/manager/BasicUserRoleManagerTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/authorization/manager/BasicUserRoleManagerTest.php @@ -22,7 +22,7 @@ * Description of AbstractUserRoleManagerTest * */ -class BasicUserRoleManagerTest extends PHPUnit_Framework_TestCase { +class BasicUserRoleManagerTest extends PHPUnit\Framework\TestCase { /** @property BasicUserRoleManager $service */ private $manager; @@ -30,7 +30,7 @@ class BasicUserRoleManagerTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/BasicUserRoleManager.yml'; TestDataService::truncateSpecificTables(array('SystemUser', 'Project', 'JobCandidate', 'JobVacancy', 'JobInterview')); TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmCorePlugin/test/authorization/service/DataGroupServiceTest.php b/symfony/plugins/orangehrmCorePlugin/test/authorization/service/DataGroupServiceTest.php index c1e95da517..25684f3649 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/authorization/service/DataGroupServiceTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/authorization/service/DataGroupServiceTest.php @@ -23,14 +23,14 @@ * Description of DataGroupServiceTest * @group Core */ -class DataGroupServiceTest extends PHPUnit_Framework_TestCase { +class DataGroupServiceTest extends PHPUnit\Framework\TestCase { private $service; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->service = new DataGroupService(); } diff --git a/symfony/plugins/orangehrmCorePlugin/test/authorization/service/MenuServiceTest.php b/symfony/plugins/orangehrmCorePlugin/test/authorization/service/MenuServiceTest.php index 9c23598438..cf7a907475 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/authorization/service/MenuServiceTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/authorization/service/MenuServiceTest.php @@ -21,14 +21,14 @@ * Description of MenuServiceTest * @group Core */ -class MenuServiceTest extends PHPUnit_Framework_TestCase { +class MenuServiceTest extends PHPUnit\Framework\TestCase { private $menuService; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/MenuDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmCorePlugin/test/authorization/service/ScreenPermissionServiceTest.php b/symfony/plugins/orangehrmCorePlugin/test/authorization/service/ScreenPermissionServiceTest.php index 0c4a95983a..0d2355c9af 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/authorization/service/ScreenPermissionServiceTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/authorization/service/ScreenPermissionServiceTest.php @@ -22,7 +22,7 @@ * Description of ScreenPermissionServiceTest * @group Core */ -class ScreenPermissionServiceTest extends PHPUnit_Framework_TestCase { +class ScreenPermissionServiceTest extends PHPUnit\Framework\TestCase { /** @property ScreenPermissionService $service */ private $service; @@ -30,7 +30,7 @@ class ScreenPermissionServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->service = new ScreenPermissionService(); } diff --git a/symfony/plugins/orangehrmCorePlugin/test/authorization/service/UserRoleManagerServiceTest.php b/symfony/plugins/orangehrmCorePlugin/test/authorization/service/UserRoleManagerServiceTest.php index 163e6daacc..a1da03c59b 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/authorization/service/UserRoleManagerServiceTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/authorization/service/UserRoleManagerServiceTest.php @@ -23,7 +23,7 @@ * * @group Core */ -class UserRoleManagerServiceTest extends PHPUnit_Framework_TestCase { +class UserRoleManagerServiceTest extends PHPUnit\Framework\TestCase { /** @property UserRoleManagerService $service */ private $service; @@ -31,7 +31,7 @@ class UserRoleManagerServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->service = new UserRoleManagerService(); } diff --git a/symfony/plugins/orangehrmCorePlugin/test/authorization/userrole/AdminUserRoleTest.php b/symfony/plugins/orangehrmCorePlugin/test/authorization/userrole/AdminUserRoleTest.php index ec1ab2516a..abd1e33e3b 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/authorization/userrole/AdminUserRoleTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/authorization/userrole/AdminUserRoleTest.php @@ -22,7 +22,7 @@ * Description of AdminUserRoleTest * @group Core */ -class AdminUserRoleTest extends PHPUnit_Framework_TestCase { +class AdminUserRoleTest extends PHPUnit\Framework\TestCase { /** @property AdminUserRole $adminUserRole */ private $adminUserRole; @@ -30,7 +30,7 @@ class AdminUserRoleTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { // $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/UserRole.yml'; // TestDataService::truncateSpecificTables(array('SystemUser')); // TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmCorePlugin/test/authorization/userrole/SupervisorUserRoleTest.php b/symfony/plugins/orangehrmCorePlugin/test/authorization/userrole/SupervisorUserRoleTest.php index 6ee56b814b..cd5c85f09e 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/authorization/userrole/SupervisorUserRoleTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/authorization/userrole/SupervisorUserRoleTest.php @@ -22,7 +22,7 @@ * Description of SupervisorUserRoleTest * @group Core */ -class SupervisorUserRoleTest extends PHPUnit_Framework_TestCase { +class SupervisorUserRoleTest extends PHPUnit\Framework\TestCase { /** @property AdminUserRole $supervisorUserRole */ private $supervisorUserRole; @@ -30,7 +30,7 @@ class SupervisorUserRoleTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->supervisorUserRole = new SupervisorUserRole('Supervisor', new BasicUserRoleManager()); } diff --git a/symfony/plugins/orangehrmCorePlugin/test/cache/ohrmKeyValueCacheTest.php b/symfony/plugins/orangehrmCorePlugin/test/cache/ohrmKeyValueCacheTest.php index dbd88fe402..b5eaba7434 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/cache/ohrmKeyValueCacheTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/cache/ohrmKeyValueCacheTest.php @@ -21,13 +21,13 @@ /** * @group Core */ -class ohrmKeyValueCacheTest extends PHPUnit_Framework_TestCase { +class ohrmKeyValueCacheTest extends PHPUnit\Framework\TestCase { - protected function setUp() { + protected function setUp() :void { } - protected function tearDown() { + protected function tearDown() :void { $fileSystem = new sfFilesystem(); $fileSystem->remove(sfFinder::type('file')->discard('.sf')->in(sfConfig::get('sf_cache_dir') . '/ohrmKeyValueCache')); } diff --git a/symfony/plugins/orangehrmCorePlugin/test/components/ButtonTest.php b/symfony/plugins/orangehrmCorePlugin/test/components/ButtonTest.php index 9b3fc47065..21cf759ec9 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/components/ButtonTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/components/ButtonTest.php @@ -9,7 +9,7 @@ * @group Core * @group ListComponent */ -class ButtonTest extends PHPUnit_Framework_TestCase { +class ButtonTest extends PHPUnit\Framework\TestCase { /** * @var Button @@ -20,7 +20,7 @@ class ButtonTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->button = new Button; } @@ -28,7 +28,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/components/CellTest.php b/symfony/plugins/orangehrmCorePlugin/test/components/CellTest.php index bc1980bd5a..ad5ee6d9a4 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/components/CellTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/components/CellTest.php @@ -23,7 +23,7 @@ * @group Core * @group ListComponent */ -class CellTest extends PHPUnit_Framework_TestCase { +class CellTest extends PHPUnit\Framework\TestCase { /** * @var ListHeader @@ -34,7 +34,7 @@ class CellTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->cell = new TestConcreteCell(); } @@ -42,7 +42,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/components/CheckboxTest.php b/symfony/plugins/orangehrmCorePlugin/test/components/CheckboxTest.php index 1170beca2f..e4ca39df57 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/components/CheckboxTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/components/CheckboxTest.php @@ -6,7 +6,7 @@ * Test class for Checkbox. * @group Core */ -class CheckboxTest extends PHPUnit_Framework_TestCase { +class CheckboxTest extends PHPUnit\Framework\TestCase { /** * @var Checkbox @@ -17,7 +17,7 @@ class CheckboxTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->checkbox = new Checkbox; } @@ -25,7 +25,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/components/EnumCellFilterTest.php b/symfony/plugins/orangehrmCorePlugin/test/components/EnumCellFilterTest.php index 2ffe264614..624d5d666e 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/components/EnumCellFilterTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/components/EnumCellFilterTest.php @@ -23,7 +23,7 @@ * @group Core * @group ListComponent */ -class EnumCellFilterTest extends PHPUnit_Framework_TestCase { +class EnumCellFilterTest extends PHPUnit\Framework\TestCase { /** * @var filter @@ -34,7 +34,7 @@ class EnumCellFilterTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->filter = new EnumCellFilter(); } @@ -42,7 +42,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/components/HeaderCellTest.php b/symfony/plugins/orangehrmCorePlugin/test/components/HeaderCellTest.php index 8d5139934d..b9ea0d4a4f 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/components/HeaderCellTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/components/HeaderCellTest.php @@ -7,7 +7,7 @@ * @group Core * @group ListComponent */ -class HeaderCellTest extends PHPUnit_Framework_TestCase { +class HeaderCellTest extends PHPUnit\Framework\TestCase { /** * @var HeaderCell @@ -18,7 +18,7 @@ class HeaderCellTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->headerCell = new HeaderCell; } @@ -26,7 +26,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/components/LabelCellTest.php b/symfony/plugins/orangehrmCorePlugin/test/components/LabelCellTest.php index 8929aff496..56e870a272 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/components/LabelCellTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/components/LabelCellTest.php @@ -7,7 +7,7 @@ * @group Core * @group ListComponent */ -class LabelCellTest extends PHPUnit_Framework_TestCase { +class LabelCellTest extends PHPUnit\Framework\TestCase { /** * @var LabelCell @@ -18,7 +18,7 @@ class LabelCellTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->labelCell = new LabelCell; } @@ -26,7 +26,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/components/LinkCellTest.php b/symfony/plugins/orangehrmCorePlugin/test/components/LinkCellTest.php index 152d4c4c2a..b0e164bea9 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/components/LinkCellTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/components/LinkCellTest.php @@ -7,7 +7,7 @@ * @group Core * @group ListComponent */ -class LinkCellTest extends PHPUnit_Framework_TestCase { +class LinkCellTest extends PHPUnit\Framework\TestCase { /** * @var LinkCell @@ -18,7 +18,7 @@ class LinkCellTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->linkCell = new LinkCell; } @@ -26,7 +26,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/components/ListHeaderTest.php b/symfony/plugins/orangehrmCorePlugin/test/components/ListHeaderTest.php index 103ac83054..3b45749d7c 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/components/ListHeaderTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/components/ListHeaderTest.php @@ -7,7 +7,7 @@ * @group Core * @group ListComponent */ -class ListHeaderTest extends PHPUnit_Framework_TestCase { +class ListHeaderTest extends PHPUnit\Framework\TestCase { /** * @var ListHeader @@ -18,7 +18,7 @@ class ListHeaderTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->object = new ListHeader; } @@ -26,7 +26,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/components/PropertyPopulatorTest.php b/symfony/plugins/orangehrmCorePlugin/test/components/PropertyPopulatorTest.php index ca3a7a51a8..56d8f3fb13 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/components/PropertyPopulatorTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/components/PropertyPopulatorTest.php @@ -6,7 +6,7 @@ * Test class for PropertyPopulator. * @group Core */ -class PropertyPopulatorTest extends PHPUnit_Framework_TestCase { +class PropertyPopulatorTest extends PHPUnit\Framework\TestCase { /** * @var PropertyPopulator @@ -17,14 +17,14 @@ class PropertyPopulatorTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/components/SortableHeaderCellTest.php b/symfony/plugins/orangehrmCorePlugin/test/components/SortableHeaderCellTest.php index 51610d72d3..234b1c7bb1 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/components/SortableHeaderCellTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/components/SortableHeaderCellTest.php @@ -7,7 +7,7 @@ * @group Core * @group ListComponent */ -class SortableHeaderCellTest extends PHPUnit_Framework_TestCase { +class SortableHeaderCellTest extends PHPUnit\Framework\TestCase { /** * @var SortableHeaderCell @@ -18,7 +18,7 @@ class SortableHeaderCellTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->sortableHeaderCell = new SortableHeaderCell; } @@ -26,7 +26,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/components/ohrmCellFilterTest.php b/symfony/plugins/orangehrmCorePlugin/test/components/ohrmCellFilterTest.php index 36fb2d24b2..5e8ea1bfd2 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/components/ohrmCellFilterTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/components/ohrmCellFilterTest.php @@ -23,7 +23,7 @@ * @group Core * @group ListComponent */ -class ohrmCellFilterTest extends PHPUnit_Framework_TestCase { +class ohrmCellFilterTest extends PHPUnit\Framework\TestCase { /** * @var filter @@ -34,7 +34,7 @@ class ohrmCellFilterTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->filter = new TestCellFilter(); } @@ -42,7 +42,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/components/ohrmListComponentTest.php b/symfony/plugins/orangehrmCorePlugin/test/components/ohrmListComponentTest.php index 0573059872..adf81b55b2 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/components/ohrmListComponentTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/components/ohrmListComponentTest.php @@ -8,7 +8,7 @@ * @group Core * @group ListComponent */ -class ohrmListComponentTest extends PHPUnit_Framework_TestCase +class ohrmListComponentTest extends PHPUnit\Framework\TestCase { /** * @var ohrmListComponent @@ -19,7 +19,7 @@ class ohrmListComponentTest extends PHPUnit_Framework_TestCase * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() + protected function setUp() :void { $browser = new sfTestFunctional(new sfBrowser()); $this->browser = $browser; @@ -30,7 +30,7 @@ protected function setUp() * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/dao/ConfigDaoTest.php b/symfony/plugins/orangehrmCorePlugin/test/dao/ConfigDaoTest.php index 7459d9628d..a4334dcb1f 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/dao/ConfigDaoTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/dao/ConfigDaoTest.php @@ -6,14 +6,14 @@ * ConfigDao Test Class * @group Core */ -class ConfigDaoTest extends PHPUnit_Framework_TestCase { +class ConfigDaoTest extends PHPUnit\Framework\TestCase { private $configDao; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->configDao = new ConfigDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/ConfigDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmCorePlugin/test/dao/EmailDaoTest.php b/symfony/plugins/orangehrmCorePlugin/test/dao/EmailDaoTest.php index d31c3fde11..35289b349b 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/dao/EmailDaoTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/dao/EmailDaoTest.php @@ -22,14 +22,14 @@ /** * Description of EmailDaoTest */ -class EmailDaoTest extends PHPUnit_Framework_TestCase { +class EmailDaoTest extends PHPUnit\Framework\TestCase { private $emailDao; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->emailDao = new EmailDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/EmailDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmCorePlugin/test/factory/SimpleUserRoleFactoryTest.php b/symfony/plugins/orangehrmCorePlugin/test/factory/SimpleUserRoleFactoryTest.php index 91ad085785..164c6dcad0 100755 --- a/symfony/plugins/orangehrmCorePlugin/test/factory/SimpleUserRoleFactoryTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/factory/SimpleUserRoleFactoryTest.php @@ -10,7 +10,7 @@ * * @group Core */ -class SimpleUserRoleFactoryTest extends PHPUnit_Framework_TestCase { +class SimpleUserRoleFactoryTest extends PHPUnit\Framework\TestCase { /* Test decorateUserRole() method. * Testcase for the senario where the user is an Admin and not a Ess User. diff --git a/symfony/plugins/orangehrmCorePlugin/test/form/validate/ohrmValidatorSchemaCompareTest.php b/symfony/plugins/orangehrmCorePlugin/test/form/validate/ohrmValidatorSchemaCompareTest.php index 56ce609bd7..9092dd9234 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/form/validate/ohrmValidatorSchemaCompareTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/form/validate/ohrmValidatorSchemaCompareTest.php @@ -22,7 +22,7 @@ * Test class ohrmValidatorSchemaCompare * @group core */ -class ohrmValidatorSchemaCompareTest extends PHPUnit_Framework_TestCase { +class ohrmValidatorSchemaCompareTest extends PHPUnit\Framework\TestCase { public function testDoClean() { diff --git a/symfony/plugins/orangehrmCorePlugin/test/form/widget/ohrmWidgetFormTimeRangeTest.php b/symfony/plugins/orangehrmCorePlugin/test/form/widget/ohrmWidgetFormTimeRangeTest.php index 261601a3e8..ead2437028 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/form/widget/ohrmWidgetFormTimeRangeTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/form/widget/ohrmWidgetFormTimeRangeTest.php @@ -22,11 +22,11 @@ * Test case for ohrmWidgetFormTimeRangeTest * @group core */ -class ohrmWidgetFormTimeRangeTest extends PHPUnit_Framework_TestCase { +class ohrmWidgetFormTimeRangeTest extends PHPUnit\Framework\TestCase { private $widget; - public function setup() { + public function setup(): void { $this->widget = new ohrmWidgetFormTimeRange(array( 'from_time' => '', diff --git a/symfony/plugins/orangehrmCorePlugin/test/model/dao/AccessFlowStateMachineDaoTest.php b/symfony/plugins/orangehrmCorePlugin/test/model/dao/AccessFlowStateMachineDaoTest.php index 91fd0bc74c..85baaa8261 100755 --- a/symfony/plugins/orangehrmCorePlugin/test/model/dao/AccessFlowStateMachineDaoTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/model/dao/AccessFlowStateMachineDaoTest.php @@ -10,14 +10,14 @@ * * @group Core */ -class AccessFlowStateMachineDaoTest extends PHPUnit_Framework_TestCase { +class AccessFlowStateMachineDaoTest extends PHPUnit\Framework\TestCase { private $accessFlowStateMachineDao; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->accessFlowStateMachineDao = new AccessFlowStateMachineDao(); diff --git a/symfony/plugins/orangehrmCorePlugin/test/model/dao/ReportableDaoTest.php b/symfony/plugins/orangehrmCorePlugin/test/model/dao/ReportableDaoTest.php index 0173aba502..1b3d3202c3 100755 --- a/symfony/plugins/orangehrmCorePlugin/test/model/dao/ReportableDaoTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/model/dao/ReportableDaoTest.php @@ -21,13 +21,13 @@ /** * @group Core */ -class ReportableDaoTest extends PHPUnit_Framework_TestCase { +class ReportableDaoTest extends PHPUnit\Framework\TestCase { private $reportableDao; /* Set up method */ - protected function setUp() { + protected function setUp() :void { $this->reportableDao = new ReportableDao(); TestDataService::truncateTables(array('SelectedCompositeDisplayField','CompositeDisplayField','DisplayField', 'SelectedGroupField', 'GroupField', 'SelectedDisplayField', 'SelectedFilterField', 'FilterField', 'Report', 'ReportGroup', 'ProjectActivity', 'Project', 'Customer')); diff --git a/symfony/plugins/orangehrmCorePlugin/test/model/doctrine/PluginWorkflowStateMachineTest.php b/symfony/plugins/orangehrmCorePlugin/test/model/doctrine/PluginWorkflowStateMachineTest.php index f871db5025..1ac4ea0503 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/model/doctrine/PluginWorkflowStateMachineTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/model/doctrine/PluginWorkflowStateMachineTest.php @@ -22,9 +22,9 @@ /** * Description of PluginWorkflowStateMachineTest */ -class PluginWorkflowStateMachineTest extends PHPUnit_Framework_TestCase { +class PluginWorkflowStateMachineTest extends PHPUnit\Framework\TestCase { - protected function setUp() { + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmCorePlugin/test/model/service/AccessFlowStateMachineServiceTest.php b/symfony/plugins/orangehrmCorePlugin/test/model/service/AccessFlowStateMachineServiceTest.php index 68a23ed278..aed7d3b75b 100755 --- a/symfony/plugins/orangehrmCorePlugin/test/model/service/AccessFlowStateMachineServiceTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/model/service/AccessFlowStateMachineServiceTest.php @@ -10,11 +10,11 @@ * * @group Core */ -class AccessFlowStateMachineServiceTest extends PHPUnit_Framework_TestCase { +class AccessFlowStateMachineServiceTest extends PHPUnit\Framework\TestCase { private $accessFlowStateMachineService; - protected function setUp() { + protected function setUp() :void { $this->accessFlowStateMachineService = new AccessFlowStateMachineService(); diff --git a/symfony/plugins/orangehrmCorePlugin/test/model/service/BaseServiceDataTest.php b/symfony/plugins/orangehrmCorePlugin/test/model/service/BaseServiceDataTest.php index aee8eadae6..e72aed18ea 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/model/service/BaseServiceDataTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/model/service/BaseServiceDataTest.php @@ -24,7 +24,7 @@ /** * @group Core */ -class BaseServiceDataTest extends PHPUnit_Framework_TestCase { +class BaseServiceDataTest extends PHPUnit\Framework\TestCase { protected static $baseService; protected static$fixture; @@ -33,7 +33,7 @@ class BaseServiceDataTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - public static function setUpBeforeClass() { + public static function setupBeforeClass():void { self::$baseService = new BaseService(); $sampleQueryExtensionsPath = sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/sample_query_extensions.yml'; diff --git a/symfony/plugins/orangehrmCorePlugin/test/model/service/BaseServiceTest.php b/symfony/plugins/orangehrmCorePlugin/test/model/service/BaseServiceTest.php index 9c80a2aed1..b063a68fc9 100755 --- a/symfony/plugins/orangehrmCorePlugin/test/model/service/BaseServiceTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/model/service/BaseServiceTest.php @@ -23,7 +23,7 @@ /** * @group Core */ -class BaseServiceTest extends PHPUnit_Framework_TestCase { +class BaseServiceTest extends PHPUnit\Framework\TestCase { private $baseService; protected $fixture; @@ -31,7 +31,7 @@ class BaseServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->baseService = new BaseService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/sample_query_extensions.yml'; PluginQueryExtensionManager::instance()->setQueryExtensions(sfYaml::load($this->fixture)); diff --git a/symfony/plugins/orangehrmCorePlugin/test/model/service/ReportGeneratorServiceTest.php b/symfony/plugins/orangehrmCorePlugin/test/model/service/ReportGeneratorServiceTest.php index bb9c05354a..d5a4629e68 100755 --- a/symfony/plugins/orangehrmCorePlugin/test/model/service/ReportGeneratorServiceTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/model/service/ReportGeneratorServiceTest.php @@ -21,11 +21,11 @@ /** * @group Core */ -class ReportGeneratorServiceTest extends PHPUnit_Framework_TestCase { +class ReportGeneratorServiceTest extends PHPUnit\Framework\TestCase { private $reportGeneratorService; - protected function setUp() { + protected function setUp() :void { $this->reportGeneratorService = new ReportGeneratorService(); TestDataService::populate(sfConfig::get('sf_plugins_dir') . '/orangehrmCorePlugin/test/fixtures/ReportGeneratorService.yml'); diff --git a/symfony/plugins/orangehrmCorePlugin/test/model/service/ReportableServiceTest.php b/symfony/plugins/orangehrmCorePlugin/test/model/service/ReportableServiceTest.php index 0878aa19c4..319dc2c572 100755 --- a/symfony/plugins/orangehrmCorePlugin/test/model/service/ReportableServiceTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/model/service/ReportableServiceTest.php @@ -25,7 +25,7 @@ class ReportableServiceTest { private $reportableService; - protected function setUp() { + protected function setUp() :void { $this->reportableService = new ReportableService(); TestDataService::truncateTables(array('Report', 'ReportGroup')); diff --git a/symfony/plugins/orangehrmCorePlugin/test/orangehrmCorePluginAllTests.php b/symfony/plugins/orangehrmCorePlugin/test/orangehrmCorePluginAllTests.php index f9ef66cf8d..9bbb0de8f4 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/orangehrmCorePluginAllTests.php +++ b/symfony/plugins/orangehrmCorePlugin/test/orangehrmCorePluginAllTests.php @@ -19,13 +19,13 @@ */ class orangehrmCorePluginAllTests { - protected function setUp() { + protected function setUp() :void { } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmCorePluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmCorePluginAllTest'); /* Component Test Cases */ $suite->addTestFile(dirname(__FILE__) . '/components/ListHeaderTest.php'); @@ -97,7 +97,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmCorePlugin/test/service/ConfigServiceTest.php b/symfony/plugins/orangehrmCorePlugin/test/service/ConfigServiceTest.php index f1547f98d1..72c9ac15c6 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/service/ConfigServiceTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/service/ConfigServiceTest.php @@ -6,14 +6,14 @@ * ConfigService Test Class * @group Core */ -class ConfigServiceTest extends PHPUnit_Framework_TestCase { +class ConfigServiceTest extends PHPUnit\Framework\TestCase { private $configService; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->configService = new ConfigService(); } diff --git a/symfony/plugins/orangehrmCorePlugin/test/utility/Base64UrlTest.php b/symfony/plugins/orangehrmCorePlugin/test/utility/Base64UrlTest.php index 5b982dd69f..57dee7cfd5 100644 --- a/symfony/plugins/orangehrmCorePlugin/test/utility/Base64UrlTest.php +++ b/symfony/plugins/orangehrmCorePlugin/test/utility/Base64UrlTest.php @@ -17,7 +17,7 @@ * Boston, MA 02110-1301, USA */ -class Base64UrlTest extends PHPUnit_Framework_TestCase { +class Base64UrlTest extends PHPUnit\Framework\TestCase { /** * @dataProvider base64dataProvider diff --git a/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/dao/WSUtilityDaoTest.php b/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/dao/WSUtilityDaoTest.php index 3b48a428b2..f1650c1df7 100755 --- a/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/dao/WSUtilityDaoTest.php +++ b/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/dao/WSUtilityDaoTest.php @@ -5,7 +5,7 @@ * Generated by PHPUnit on 2012-06-14 at 02:48:10. * @group WebServices */ -class WSUtilityDaoTest extends PHPUnit_Framework_TestCase { +class WSUtilityDaoTest extends PHPUnit\Framework\TestCase { /** * @var WebServiceUtilityDao @@ -16,7 +16,7 @@ class WSUtilityDaoTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->dao = new WSUtilityDao(); } @@ -24,7 +24,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/service/WSUtilityServiceTest.php b/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/service/WSUtilityServiceTest.php index 775d76cbd5..948533ca1e 100755 --- a/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/service/WSUtilityServiceTest.php +++ b/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/service/WSUtilityServiceTest.php @@ -5,7 +5,7 @@ * Generated by PHPUnit on 2012-06-14 at 10:31:59. * @group WebServices */ -class WSUtilityServiceTest extends PHPUnit_Framework_TestCase { +class WSUtilityServiceTest extends PHPUnit\Framework\TestCase { /** * @var WSUtilityService @@ -16,7 +16,7 @@ class WSUtilityServiceTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->service = new WSUtilityService(); } @@ -24,7 +24,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSHelperTest.php b/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSHelperTest.php index 14342e65ca..af97b32322 100755 --- a/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSHelperTest.php +++ b/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSHelperTest.php @@ -5,7 +5,7 @@ * Generated by PHPUnit on 2012-06-13 at 09:47:16. * @group WebServices */ -class WSHelperTest extends PHPUnit_Framework_TestCase { +class WSHelperTest extends PHPUnit\Framework\TestCase { /** * @var WSHelper @@ -16,7 +16,7 @@ class WSHelperTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->helper = new WSHelper(); } @@ -24,7 +24,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSManagerTest.php b/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSManagerTest.php index c190d4b2fe..1026714521 100755 --- a/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSManagerTest.php +++ b/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSManagerTest.php @@ -5,9 +5,9 @@ * Generated by PHPUnit on 2012-06-13 at 09:47:17. * @group WebServices */ -class WSManagerTest extends PHPUnit_Framework_TestCase { +class WSManagerTest extends PHPUnit\Framework\TestCase { - public static function setupBeforeClass() { + public static function setupBeforeClass():void { WSManager::resetConfiguration(); } @@ -20,7 +20,7 @@ public static function setupBeforeClass() { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->manager = new WSManager(); } @@ -28,7 +28,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSRequestParametersTest.php b/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSRequestParametersTest.php index 065a388e0f..9615837690 100755 --- a/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSRequestParametersTest.php +++ b/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSRequestParametersTest.php @@ -5,7 +5,7 @@ * Generated by PHPUnit on 2012-06-13 at 09:47:17. * @group WebServices */ -class WSRequestParametersTest extends PHPUnit_Framework_TestCase { +class WSRequestParametersTest extends PHPUnit\Framework\TestCase { /** * @var WSRequestParameters @@ -16,7 +16,7 @@ class WSRequestParametersTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->object = new WSRequestParameters; } @@ -24,7 +24,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSWrapperFactoryTest.php b/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSWrapperFactoryTest.php index 46b04c4a3e..5b163bf693 100755 --- a/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSWrapperFactoryTest.php +++ b/symfony/plugins/orangehrmCoreWebServicePlugin/test/lib/utility/WSWrapperFactoryTest.php @@ -5,7 +5,7 @@ * Generated by PHPUnit on 2012-06-13 at 09:47:17. * @group WebServices */ -class WSWrapperFactoryTest extends PHPUnit_Framework_TestCase { +class WSWrapperFactoryTest extends PHPUnit\Framework\TestCase { /** * @var WSWrapperFactory @@ -16,7 +16,7 @@ class WSWrapperFactoryTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->factory = new WSWrapperFactory; } @@ -24,7 +24,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmCoreWebServicePlugin/test/orangehrmCoreWebServicePluginAllTests.php b/symfony/plugins/orangehrmCoreWebServicePlugin/test/orangehrmCoreWebServicePluginAllTests.php index 0975f64fc7..1c88b74a93 100755 --- a/symfony/plugins/orangehrmCoreWebServicePlugin/test/orangehrmCoreWebServicePluginAllTests.php +++ b/symfony/plugins/orangehrmCoreWebServicePlugin/test/orangehrmCoreWebServicePluginAllTests.php @@ -2,13 +2,13 @@ class orangehrmCoreWebServicePluginAllTests { - protected function setUp() { + protected function setUp() :void { } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmCoreWebServicePluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmCoreWebServicePluginAllTest'); /* Utility Test Cases */ $suite->addTestFile(dirname(__FILE__) . '/lib/utility/WSHelperTest.php'); @@ -26,7 +26,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/dao/EmployeeDirectoryDaoTest.php b/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/dao/EmployeeDirectoryDaoTest.php index 561daa7cdc..84f1753650 100644 --- a/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/dao/EmployeeDirectoryDaoTest.php +++ b/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/dao/EmployeeDirectoryDaoTest.php @@ -22,14 +22,14 @@ * @group CorporateDirectory */ require_once sfConfig::get('sf_test_dir') . '/util/TestDataService.php'; -class EmployeeDirectoryDaoTest extends PHPUnit_Framework_TestCase { +class EmployeeDirectoryDaoTest extends PHPUnit\Framework\TestCase { private $employeeDirectoryDao; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->employeeDirectoryDao = new EmployeeDirectoryDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorporateDirectoryPlugin/test/fixtures/EmployeeDirectoryDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/service/EmployeeDirectoryServiceTest.php b/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/service/EmployeeDirectoryServiceTest.php index 72f2c2c40a..29a1900bda 100644 --- a/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/service/EmployeeDirectoryServiceTest.php +++ b/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/service/EmployeeDirectoryServiceTest.php @@ -20,7 +20,7 @@ /** * @group CorporateDirectory */ -class EmployeeDirectoryServiceTest extends PHPUnit_Framework_TestCase { +class EmployeeDirectoryServiceTest extends PHPUnit\Framework\TestCase { @@ -30,7 +30,7 @@ class EmployeeDirectoryServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->employeeDirectoryService = new EmployeeDirectoryService(); } diff --git a/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/wrapper/CorporateDirectoryWebServiceHelperTest.php b/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/wrapper/CorporateDirectoryWebServiceHelperTest.php index 3fa0a65e14..a744aeb207 100644 --- a/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/wrapper/CorporateDirectoryWebServiceHelperTest.php +++ b/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/wrapper/CorporateDirectoryWebServiceHelperTest.php @@ -11,11 +11,11 @@ * * @author nirmal */ -class CorporateDirectoryWebServiceHelperTest extends PHPUnit_Framework_TestCase { +class CorporateDirectoryWebServiceHelperTest extends PHPUnit\Framework\TestCase { protected $corporateDirectoryWebServiceHelper; - public function setUp() { + public function setup(): void { $this->corporateDirectoryWebServiceHelper = new CorporateDirectoryWebServiceHelper(); } diff --git a/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/wrapper/CorporateDirectoryWebServiceWrapperTest.php b/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/wrapper/CorporateDirectoryWebServiceWrapperTest.php index 2a6e915b7a..4f9ab2b385 100644 --- a/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/wrapper/CorporateDirectoryWebServiceWrapperTest.php +++ b/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/model/wrapper/CorporateDirectoryWebServiceWrapperTest.php @@ -13,20 +13,20 @@ */ require_once ROOT_PATH . "/lib/confs/Conf.php"; -class CorporateDirectoryWebServiceWrapperTest extends PHPUnit_Framework_TestCase { +class CorporateDirectoryWebServiceWrapperTest extends PHPUnit\Framework\TestCase { protected $fixture; protected $manager; protected $corporateDirectoryWebServiceWrapper; - public static function setupBeforeClass() { + public static function setupBeforeClass():void { WSManager::resetConfiguration(); } /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->corporateDirectoryWebServiceWrapper = new CorporateDirectoryWebServiceWrapper(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmCorporateDirectoryPlugin/test/fixtures/EmployeeDirectoryWrapperData.yml'; $this->manager = new WSManager(); diff --git a/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/orangehrmCorporateDirectoryPluginAllTests.php b/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/orangehrmCorporateDirectoryPluginAllTests.php index 4c02262bef..7fcf7fd0c1 100644 --- a/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/orangehrmCorporateDirectoryPluginAllTests.php +++ b/symfony/plugins/orangehrmCorporateDirectoryPlugin/test/orangehrmCorporateDirectoryPluginAllTests.php @@ -7,13 +7,13 @@ class orangehrmCorporateDirectoryPluginAllTests { - protected function setUp() { + protected function setUp() :void { } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmCorporateDirectoryPlugin'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmCorporateDirectoryPlugin'); /* Dao Test Cases */ $suite->addTestFile(dirname(__FILE__) . '/model/dao/EmployeeDirectoryDaoTest.php'); @@ -28,7 +28,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmLeavePlugin/test/entitlement/FIFOEntitlementConsumptionStrategyTest.php b/symfony/plugins/orangehrmLeavePlugin/test/entitlement/FIFOEntitlementConsumptionStrategyTest.php index a5fe870c87..78e1a00048 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/entitlement/FIFOEntitlementConsumptionStrategyTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/entitlement/FIFOEntitlementConsumptionStrategyTest.php @@ -23,14 +23,14 @@ * Description of FIFOEntitlementConsumptionStrategyTest * @group Leave */ -class FIFOEntitlementConsumptionStrategyTest extends PHPUnit_Framework_TestCase { +class FIFOEntitlementConsumptionStrategyTest extends PHPUnit\Framework\TestCase { private $strategy; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->strategy = new FIFOEntitlementConsumptionStrategy(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/FIFOEntitlementStrategy.yml'; diff --git a/symfony/plugins/orangehrmLeavePlugin/test/mail/LeaveMailerTest.php b/symfony/plugins/orangehrmLeavePlugin/test/mail/LeaveMailerTest.php index ff93d2254b..0fb3b5e987 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/mail/LeaveMailerTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/mail/LeaveMailerTest.php @@ -22,10 +22,10 @@ /** * Description of LeaveMailerTest */ -class LeaveMailerTest extends PHPUnit_Framework_TestCase { +class LeaveMailerTest extends PHPUnit\Framework\TestCase { protected $mailer; - protected function setUp() { + protected function setUp() :void { $this->mailer = new LeaveMailer(); } diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/FIFOEntitlementConsumptionStrategyDaoTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/FIFOEntitlementConsumptionStrategyDaoTest.php index 4d1708f578..fb051c3f7e 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/FIFOEntitlementConsumptionStrategyDaoTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/FIFOEntitlementConsumptionStrategyDaoTest.php @@ -22,13 +22,13 @@ /** * Description of FIFOEntitlementConsumptionStrategyDaoTest */ -class FIFOEntitlementConsumptionStrategyDaoTest extends PHPUnit_Framework_TestCase { +class FIFOEntitlementConsumptionStrategyDaoTest extends PHPUnit\Framework\TestCase { private $dao; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->dao = new FIFOEntitlementConsumptionStrategyDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/FIFOEntitlementStrategy.yml'; diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/HolidayDaoTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/HolidayDaoTest.php index 8a203153a4..7955286395 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/HolidayDaoTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/HolidayDaoTest.php @@ -23,12 +23,12 @@ /** * @group Leave */ -class HolidayDaoTest extends PHPUnit_Framework_TestCase { +class HolidayDaoTest extends PHPUnit\Framework\TestCase { private $holidayDao; private $fixture; - protected function setUp() { + protected function setUp() :void { $this->holidayDao = new HolidayDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/HolidayDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeaveEntitlementDaoTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeaveEntitlementDaoTest.php index 38e3411e83..5208ff6734 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeaveEntitlementDaoTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeaveEntitlementDaoTest.php @@ -22,7 +22,7 @@ /** * @group Leave */ -class LeaveEntitlementDaoTest extends PHPUnit_Framework_TestCase { +class LeaveEntitlementDaoTest extends PHPUnit\Framework\TestCase { /** * @var LeaveEntitlementDao @@ -33,7 +33,7 @@ class LeaveEntitlementDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->dao = new LeaveEntitlementDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/LeaveEntitlement.yml'; diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeavePeriodDaoTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeavePeriodDaoTest.php index 8a125a44b6..63d87a89b9 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeavePeriodDaoTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeavePeriodDaoTest.php @@ -24,11 +24,11 @@ * * @group Leave */ -class LeavePeriodDaoTest extends PHPUnit_Framework_TestCase { +class LeavePeriodDaoTest extends PHPUnit\Framework\TestCase { public $leavePeriodDao; - protected function setUp() { + protected function setUp() :void { $this->leavePeriodDao = new LeavePeriodDao(); TestDataService::populate(sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/LeavePeriodDao.yml'); diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeavePeriodHistoryDaoTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeavePeriodHistoryDaoTest.php index 96ef6a96cd..cb96dff38b 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeavePeriodHistoryDaoTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeavePeriodHistoryDaoTest.php @@ -25,11 +25,11 @@ * @group Leave */ -class LeavePeriodHistoryDaoTest extends PHPUnit_Framework_TestCase { +class LeavePeriodHistoryDaoTest extends PHPUnit\Framework\TestCase { public $leavePeriodDao; - protected function setUp() { + protected function setUp() :void { $this->leavePeriodDao = new LeavePeriodDao(); TestDataService::populate(sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/LeavePeriodHistoryDao.yml'); diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeaveRequestDaoTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeaveRequestDaoTest.php index 4b2e9b2e97..c27aecefe9 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeaveRequestDaoTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeaveRequestDaoTest.php @@ -23,7 +23,7 @@ * LeaveRequestDao Test * @group Leave */ - class LeaveRequestDaoTest extends PHPUnit_Framework_TestCase{ + class LeaveRequestDaoTest extends PHPUnit\Framework\TestCase{ public $leaveRequestDao ; public $leaveType ; @@ -31,7 +31,7 @@ class LeaveRequestDaoTest extends PHPUnit_Framework_TestCase{ public $employee ; private $fixture; - protected function setUp() { + protected function setUp() :void { $this->leaveRequestDao = new LeaveRequestDao(); $this->leaveRequestDao->markApprovedLeaveAsTaken(); diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeaveTypeDaoTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeaveTypeDaoTest.php index bd7546dee8..e7243fa8fd 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeaveTypeDaoTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/LeaveTypeDaoTest.php @@ -23,7 +23,7 @@ * Description of LeaveTypeDaoTest * @group Leave */ -class LeaveTypeDaoTest extends PHPUnit_Framework_TestCase { +class LeaveTypeDaoTest extends PHPUnit\Framework\TestCase { /** * @var LeaveTypeDao @@ -34,7 +34,7 @@ class LeaveTypeDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->dao = new LeaveTypeDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/LeaveType.yml'; diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/WorkWeekDaoTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/WorkWeekDaoTest.php index d65cf6f997..9032c70acf 100755 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/dao/WorkWeekDaoTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/dao/WorkWeekDaoTest.php @@ -23,12 +23,12 @@ /** * @group Leave */ -class WorkWeekDaoTest extends PHPUnit_Framework_TestCase { +class WorkWeekDaoTest extends PHPUnit\Framework\TestCase { private $workWeekDao; private $testCases; - protected function setUp() { + protected function setUp() :void { $this->testCases = sfYaml::load(sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/WorkWeekDao.yml'); $this->workWeekDao = new WorkWeekDao(); diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/service/HolidayServiceTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/service/HolidayServiceTest.php index 380455af06..7445250748 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/service/HolidayServiceTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/service/HolidayServiceTest.php @@ -21,13 +21,13 @@ /** * @group Leave */ -class HolidayServiceTest extends PHPUnit_Framework_TestCase { +class HolidayServiceTest extends PHPUnit\Framework\TestCase { private $holidayService; private $fixture; - protected function setUp() { + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/HolidayService.yml'; $this->holidayService = new HolidayService(); } diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveConfigurationServiceTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveConfigurationServiceTest.php index d2208022c5..201c67950a 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveConfigurationServiceTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveConfigurationServiceTest.php @@ -23,14 +23,14 @@ * Test class for LeaveConfigurationService * @group Leave */ -class LeaveConfigurationServiceTest extends PHPUnit_Framework_TestCase { +class LeaveConfigurationServiceTest extends PHPUnit\Framework\TestCase { private $service; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->service = new LeaveConfigurationService(); } diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveEntitlementServiceTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveEntitlementServiceTest.php index fa90ca75e8..dee04a4c3b 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveEntitlementServiceTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveEntitlementServiceTest.php @@ -24,7 +24,7 @@ * * @group Leave */ -class LeaveEntitlementServiceTest extends PHPUnit_Framework_TestCase { +class LeaveEntitlementServiceTest extends PHPUnit\Framework\TestCase { private $service; protected $fixture; @@ -32,7 +32,7 @@ class LeaveEntitlementServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->service = new LeaveEntitlementService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/LeaveEntitlement.yml'; } diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodHistoryServiceTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodHistoryServiceTest.php index c37d06ab14..79c4cf267e 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodHistoryServiceTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodHistoryServiceTest.php @@ -23,12 +23,12 @@ * Leave period service test * @group Leave */ -class LeavePeriodHistoryServiceTest extends PHPUnit_Framework_TestCase { +class LeavePeriodHistoryServiceTest extends PHPUnit\Framework\TestCase { private $leavePeriodService; private $fixture; - protected function setUp() { + protected function setUp() :void { $this->leavePeriodService = new LeavePeriodService(); $leaveEntitlementService = new LeaveEntitlementService(); diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodServiceGenerateEndDateTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodServiceGenerateEndDateTest.php index 8ca26ac49b..01492c9b0e 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodServiceGenerateEndDateTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodServiceGenerateEndDateTest.php @@ -19,9 +19,9 @@ /** * @group Leave */ -class LeavePeriodServiceGenerateEndDateTest extends PHPUnit_Framework_TestCase { +class LeavePeriodServiceGenerateEndDateTest extends PHPUnit\Framework\TestCase { - protected function setUp() { + protected function setUp() :void { $this->leavePeriodService = new LeavePeriodService(); diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodServiceGenerateStartDateTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodServiceGenerateStartDateTest.php index ba38f744d9..e59789b365 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodServiceGenerateStartDateTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodServiceGenerateStartDateTest.php @@ -19,9 +19,9 @@ /** * @group Leave */ -class LeavePeriodServiceGenerateStartDateTest extends PHPUnit_Framework_TestCase { +class LeavePeriodServiceGenerateStartDateTest extends PHPUnit\Framework\TestCase { - protected function setUp() { + protected function setUp() :void { $this->leavePeriodService = new LeavePeriodService(); diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodServiceTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodServiceTest.php index e7d8ecdc25..ad2b017b7a 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodServiceTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeavePeriodServiceTest.php @@ -25,12 +25,12 @@ * Leave period service test * @group Leave */ -class LeavePeriodServiceTest extends PHPUnit_Framework_TestCase { +class LeavePeriodServiceTest extends PHPUnit\Framework\TestCase { private $leavePeriodService; private $fixture; - protected function setUp() { + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/LeavePeriodService.yml'; $this->leavePeriodService = new LeavePeriodService(); diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveRequestServiceTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveRequestServiceTest.php index e151d86561..c0878c29d5 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveRequestServiceTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveRequestServiceTest.php @@ -23,7 +23,7 @@ * Leave Type rule service * @group Leave */ -class LeaveRequestServiceTest extends PHPUnit_Framework_TestCase { +class LeaveRequestServiceTest extends PHPUnit\Framework\TestCase { /** * @var LeaveRequestService @@ -34,7 +34,7 @@ class LeaveRequestServiceTest extends PHPUnit_Framework_TestCase { /** * PHPUnit setup function */ - public function setup() { + public function setup(): void { $this->leaveRequestService = new LeaveRequestService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/LeaveRequestService.yml'; diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveTypeServiceTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveTypeServiceTest.php index b24cd39fdf..1fe51281b3 100755 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveTypeServiceTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/service/LeaveTypeServiceTest.php @@ -23,7 +23,7 @@ * Leave Type rule service * @group Leave */ - class LeaveTypeServiceTest extends PHPUnit_Framework_TestCase{ + class LeaveTypeServiceTest extends PHPUnit\Framework\TestCase{ private $leaveTypeService; protected $fixture; @@ -31,7 +31,7 @@ class LeaveTypeServiceTest extends PHPUnit_Framework_TestCase{ /** * PHPUnit setup function */ - public function setup() { + public function setup(): void { $this->leaveTypeService = new LeaveTypeService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/LeaveTypeService.yml'; diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/service/WorkScheduleServiceTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/service/WorkScheduleServiceTest.php index ac5a50636c..78a3cf382b 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/service/WorkScheduleServiceTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/service/WorkScheduleServiceTest.php @@ -22,14 +22,14 @@ /** * @group Leave */ -class WorkScheduleServiceTest extends PHPUnit_Framework_TestCase { +class WorkScheduleServiceTest extends PHPUnit\Framework\TestCase { private $service; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->service = new WorkScheduleService(); } diff --git a/symfony/plugins/orangehrmLeavePlugin/test/model/service/WorkWeekServiceTest.php b/symfony/plugins/orangehrmLeavePlugin/test/model/service/WorkWeekServiceTest.php index 9afc9118bb..062cabe0a7 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/model/service/WorkWeekServiceTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/model/service/WorkWeekServiceTest.php @@ -22,13 +22,13 @@ /** * @group Leave */ -class WorkWeekServiceTest extends PHPUnit_Framework_TestCase +class WorkWeekServiceTest extends PHPUnit\Framework\TestCase { private $workWeekService; private $fixture; - protected function setUp() + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmLeavePlugin/test/fixtures/WorkWeekService.yml'; $this->workWeekService = new WorkWeekService(); diff --git a/symfony/plugins/orangehrmLeavePlugin/test/orangehrmLeavePluginAllTests.php b/symfony/plugins/orangehrmLeavePlugin/test/orangehrmLeavePluginAllTests.php index fc1bcf4b92..cb20f56a86 100755 --- a/symfony/plugins/orangehrmLeavePlugin/test/orangehrmLeavePluginAllTests.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/orangehrmLeavePluginAllTests.php @@ -2,13 +2,13 @@ class orangehrmLeavePluginAllTests { - protected function setUp() { + protected function setUp() :void { } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmLeavePluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmLeavePluginAllTest'); /* Dao Test Cases */ $suite->addTestFile(dirname(__FILE__) . '/model/dao/LeaveEntitlementDaoTest.php'); @@ -46,7 +46,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmLeavePlugin/test/performance/LeavePerformanceTest.php b/symfony/plugins/orangehrmLeavePlugin/test/performance/LeavePerformanceTest.php index ebb837e59c..0569e997da 100644 --- a/symfony/plugins/orangehrmLeavePlugin/test/performance/LeavePerformanceTest.php +++ b/symfony/plugins/orangehrmLeavePlugin/test/performance/LeavePerformanceTest.php @@ -19,7 +19,7 @@ * * @author samantha */ -class LeavePerformanceTest extends PHPUnit_Framework_TestCase{ +class LeavePerformanceTest extends PHPUnit\Framework\TestCase{ diff --git a/symfony/plugins/orangehrmMaintenancePlugin/test/model/dao/MaintenanceDaoTest.php b/symfony/plugins/orangehrmMaintenancePlugin/test/model/dao/MaintenanceDaoTest.php index 71b3a8b9fa..9c628be8cb 100644 --- a/symfony/plugins/orangehrmMaintenancePlugin/test/model/dao/MaintenanceDaoTest.php +++ b/symfony/plugins/orangehrmMaintenancePlugin/test/model/dao/MaintenanceDaoTest.php @@ -21,7 +21,7 @@ * Class MaintenanceDaoTest * @group maintenance */ -class MaintenanceDaoTest extends PHPUnit_Framework_TestCase +class MaintenanceDaoTest extends PHPUnit\Framework\TestCase { protected $fixture = null; @@ -31,7 +31,7 @@ class MaintenanceDaoTest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmMaintenancePlugin/test/fixtures/EmployeeDaoWithDeletedEmployee.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmMaintenancePlugin/test/model/service/MaintenanceServiceTest.php b/symfony/plugins/orangehrmMaintenancePlugin/test/model/service/MaintenanceServiceTest.php index ecaa5f134a..679f25e42b 100644 --- a/symfony/plugins/orangehrmMaintenancePlugin/test/model/service/MaintenanceServiceTest.php +++ b/symfony/plugins/orangehrmMaintenancePlugin/test/model/service/MaintenanceServiceTest.php @@ -21,7 +21,7 @@ * Class AuthenticateVerifyServiceTest * @group maintenance */ -class MaintenanceServiceTest extends PHPUnit_Framework_TestCase +class MaintenanceServiceTest extends PHPUnit\Framework\TestCase { protected $fixture; private $maintenanceService; @@ -29,7 +29,7 @@ class MaintenanceServiceTest extends PHPUnit_Framework_TestCase /** * */ - protected function setUp() + protected function setUp() :void { $this->maintenanceService = new MaintenanceService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmMaintenancePlugin/test/fixtures/EmployeeDaoWithDeletedEmployee.yml'; diff --git a/symfony/plugins/orangehrmMaintenancePlugin/test/orangehrmMaintenancePluginAllTests.php b/symfony/plugins/orangehrmMaintenancePlugin/test/orangehrmMaintenancePluginAllTests.php index 24e0e540ab..fcfef9dac1 100644 --- a/symfony/plugins/orangehrmMaintenancePlugin/test/orangehrmMaintenancePluginAllTests.php +++ b/symfony/plugins/orangehrmMaintenancePlugin/test/orangehrmMaintenancePluginAllTests.php @@ -6,11 +6,11 @@ class orangehrmMaintenancePluginAllTests { /** - * @return PHPUnit_Framework_TestSuite + * @return PHPUnit\Framework\TestSuite */ public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmMaintenancePluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmMaintenancePluginAllTest'); $suite->addTestFile(dirname(__FILE__) . '/model/dao/MaintenanceDaoTest.php'); $suite->addTestFile(dirname(__FILE__) . '/model/service/MaintenanceServiceTest.php'); diff --git a/symfony/plugins/orangehrmMarketPlacePlugin/test/model/dao/MarketplaceDaoTest.php b/symfony/plugins/orangehrmMarketPlacePlugin/test/model/dao/MarketplaceDaoTest.php index 4fc4172101..0863fdd980 100644 --- a/symfony/plugins/orangehrmMarketPlacePlugin/test/model/dao/MarketplaceDaoTest.php +++ b/symfony/plugins/orangehrmMarketPlacePlugin/test/model/dao/MarketplaceDaoTest.php @@ -22,12 +22,12 @@ /** * @group Marketplace */ -class MarketplaceDaoTest extends PHPUnit_Framework_TestCase { +class MarketplaceDaoTest extends PHPUnit\Framework\TestCase { private $marketplaceDao; private $fixture; - protected function setUp() { + protected function setUp() :void { $this->marketplaceDao = new MarketplaceDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmMarketPlacePlugin/test/fixtures/MarketplaceDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmMarketPlacePlugin/test/model/service/APIManagerServiceTest.php b/symfony/plugins/orangehrmMarketPlacePlugin/test/model/service/APIManagerServiceTest.php index 01cb0c0199..30ba62acf3 100644 --- a/symfony/plugins/orangehrmMarketPlacePlugin/test/model/service/APIManagerServiceTest.php +++ b/symfony/plugins/orangehrmMarketPlacePlugin/test/model/service/APIManagerServiceTest.php @@ -20,10 +20,10 @@ /** * Class APIManagerServiceTest */ -class APIManagerServiceTest extends PHPUnit_Framework_TestCase +class APIManagerServiceTest extends PHPUnit\Framework\TestCase { - public function setUp() + public function setup(): void { } diff --git a/symfony/plugins/orangehrmMarketPlacePlugin/test/model/service/MarketplaceServiceTest.php b/symfony/plugins/orangehrmMarketPlacePlugin/test/model/service/MarketplaceServiceTest.php index fb327d52dd..9884195192 100644 --- a/symfony/plugins/orangehrmMarketPlacePlugin/test/model/service/MarketplaceServiceTest.php +++ b/symfony/plugins/orangehrmMarketPlacePlugin/test/model/service/MarketplaceServiceTest.php @@ -20,11 +20,11 @@ /** * Class MarketplaceServiceTest */ -class MarketplaceServiceTest extends PHPUnit_Framework_TestCase +class MarketplaceServiceTest extends PHPUnit\Framework\TestCase { private $marketplaceService; - public function setUp() + public function setup(): void { $this->marketplaceService = new MarketplaceService(); diff --git a/symfony/plugins/orangehrmMarketPlacePlugin/test/orangehrmMarketPlacePluginAllTests.php b/symfony/plugins/orangehrmMarketPlacePlugin/test/orangehrmMarketPlacePluginAllTests.php index e927105f5f..f8fb3bfe6a 100644 --- a/symfony/plugins/orangehrmMarketPlacePlugin/test/orangehrmMarketPlacePluginAllTests.php +++ b/symfony/plugins/orangehrmMarketPlacePlugin/test/orangehrmMarketPlacePluginAllTests.php @@ -23,11 +23,11 @@ class orangehrmMarketPlacePluginAllTests { /** - * @return PHPUnit_Framework_TestSuite + * @return PHPUnit\Framework\TestSuite */ public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmMaintenancePluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmMaintenancePluginAllTest'); $suite->addTestFile(dirname(__FILE__) . '/model/service/APIManagerServiceTest.php'); $suite->addTestFile(dirname(__FILE__) . '/model/dao/MarketplaceDaoTest.php'); $suite->addTestFile(dirname(__FILE__) . '/model/service/MarketplaceServiceTest.php'); diff --git a/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/dao/AuthenticationProviderDaoTest.php b/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/dao/AuthenticationProviderDaoTest.php index 7c67c70313..0314b9600f 100755 --- a/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/dao/AuthenticationProviderDaoTest.php +++ b/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/dao/AuthenticationProviderDaoTest.php @@ -25,11 +25,11 @@ * @group AuthenticationProvider * @group openidauth */ -class AuthenticationProviderDaoTest extends PHPUnit_Framework_TestCase { +class AuthenticationProviderDaoTest extends PHPUnit\Framework\TestCase { private $authenticationDao; - protected function setUp() { + protected function setUp() :void { $this->authenticationDao = new AuthProviderExtraDetailsDao(); TestDataService::populate(sfConfig::get('sf_plugins_dir') . '/orangehrmOpenidAuthenticationPlugin/test/fixtures/AuthenticationProviders.yml'); } diff --git a/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/dao/OpenIdAuthenticationDaoTest.php b/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/dao/OpenIdAuthenticationDaoTest.php index 49e7175735..546b01e34b 100755 --- a/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/dao/OpenIdAuthenticationDaoTest.php +++ b/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/dao/OpenIdAuthenticationDaoTest.php @@ -24,8 +24,8 @@ * @group openidauth * @author lahiru */ -class OpenIdAuthenticationDaoTest extends PHPUnit_Framework_TestCase { - protected function setUp() { +class OpenIdAuthenticationDaoTest extends PHPUnit\Framework\TestCase { + protected function setUp() :void { $this->dao = new OpenIdAuthenticationDao(); $fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmOpenidAuthenticationPlugin/test/fixtures/openiduser.yml'; TestDataService::truncateTables(array('SystemUser')); diff --git a/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/dao/OpenIdProviderDaoTest.php b/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/dao/OpenIdProviderDaoTest.php index 1e2d1bc5fe..5a59ab50d3 100755 --- a/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/dao/OpenIdProviderDaoTest.php +++ b/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/dao/OpenIdProviderDaoTest.php @@ -24,8 +24,8 @@ * @group openidauth * @author orangehrm */ -class OpenIdProviderDaoTest extends PHPUnit_Framework_TestCase { - protected function setUp() { +class OpenIdProviderDaoTest extends PHPUnit\Framework\TestCase { + protected function setUp() :void { $this->dao = new OpenIdProviderDao(); $fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmOpenidAuthenticationPlugin/test/fixtures/openiduser.yml'; TestDataService::truncateTables(array('OpenidProvider')); diff --git a/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/service/AuthenticationProviderServiceTest.php b/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/service/AuthenticationProviderServiceTest.php index 90d642590d..8902f478fc 100755 --- a/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/service/AuthenticationProviderServiceTest.php +++ b/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/service/AuthenticationProviderServiceTest.php @@ -25,11 +25,11 @@ * @group AuthenticationProvider * @group openidauth */ -class AuthenticationProviderServiceTest extends PHPUnit_Framework_TestCase { +class AuthenticationProviderServiceTest extends PHPUnit\Framework\TestCase { private $authService; - protected function setUp() { + protected function setUp() :void { $this->authService = new AuthProviderExtraDetailsService(); } diff --git a/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/service/OpenIdProviderServiceTest.php b/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/service/OpenIdProviderServiceTest.php index 825b39c403..d2554a02d9 100755 --- a/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/service/OpenIdProviderServiceTest.php +++ b/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/model/service/OpenIdProviderServiceTest.php @@ -24,9 +24,9 @@ * @group openidauth * @author orangehrm */ -class OpenIdProviderServiceTest extends PHPUnit_Framework_TestCase { +class OpenIdProviderServiceTest extends PHPUnit\Framework\TestCase { private $openIdProviderService; - protected function setUp() { + protected function setUp() :void { $this->openIdProviderService = new OpenIdProviderService(); } diff --git a/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/orangehrmOpenidAuthenticationPluginAllTests.php b/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/orangehrmOpenidAuthenticationPluginAllTests.php index b606ecb07b..f9369a588e 100755 --- a/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/orangehrmOpenidAuthenticationPluginAllTests.php +++ b/symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/orangehrmOpenidAuthenticationPluginAllTests.php @@ -2,13 +2,13 @@ class orangehrmOpenidAuthenticationPluginAllTests { - protected function setUp() { + protected function setUp() :void { } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmOpenidAuthenticationPluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmOpenidAuthenticationPluginAllTest'); /* Dao Test Cases */ $suite->addTestFile(dirname(__FILE__) . '/model/dao/OpenIdAuthenticationDaoTest.php'); @@ -31,7 +31,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmPerformancePlugin/test/model/dao/KpiDaoTest.php b/symfony/plugins/orangehrmPerformancePlugin/test/model/dao/KpiDaoTest.php index dac95743bb..f4cdebcd6e 100644 --- a/symfony/plugins/orangehrmPerformancePlugin/test/model/dao/KpiDaoTest.php +++ b/symfony/plugins/orangehrmPerformancePlugin/test/model/dao/KpiDaoTest.php @@ -14,9 +14,9 @@ /** * @group performance */ -class KpiDaoTest extends PHPUnit_Framework_TestCase { +class KpiDaoTest extends PHPUnit\Framework\TestCase { - protected function setUp() { + protected function setUp() :void { TestDataService::truncateTables(array('Kpi')); TestDataService::populate(sfConfig::get('sf_plugins_dir') . '/orangehrmPerformancePlugin/test/fixtures/kpi.yml'); } diff --git a/symfony/plugins/orangehrmPerformancePlugin/test/model/dao/PerforamanceReviewDaoTest.php b/symfony/plugins/orangehrmPerformancePlugin/test/model/dao/PerforamanceReviewDaoTest.php index 41ec33db89..1730b5d4d7 100644 --- a/symfony/plugins/orangehrmPerformancePlugin/test/model/dao/PerforamanceReviewDaoTest.php +++ b/symfony/plugins/orangehrmPerformancePlugin/test/model/dao/PerforamanceReviewDaoTest.php @@ -14,9 +14,9 @@ /** * @group performance */ -class PerforamanceReviewDaoTest extends PHPUnit_Framework_TestCase { +class PerforamanceReviewDaoTest extends PHPUnit\Framework\TestCase { - protected function setUp() { + protected function setUp() :void { TestDataService::truncateTables(array('PerformanceReview', 'Employee')); TestDataService::populate(sfConfig::get('sf_plugins_dir') . '/orangehrmPerformancePlugin/test/fixtures/performance_reviews.yml'); } diff --git a/symfony/plugins/orangehrmPerformancePlugin/test/model/reviewerGroup/ReviewerGroupFactoryTest.php b/symfony/plugins/orangehrmPerformancePlugin/test/model/reviewerGroup/ReviewerGroupFactoryTest.php index 286fd3fd1a..c3a0a34557 100644 --- a/symfony/plugins/orangehrmPerformancePlugin/test/model/reviewerGroup/ReviewerGroupFactoryTest.php +++ b/symfony/plugins/orangehrmPerformancePlugin/test/model/reviewerGroup/ReviewerGroupFactoryTest.php @@ -10,7 +10,7 @@ * @group performance * @author nadeera */ -class ReviewerGroupFactoryTest extends PHPUnit_Framework_TestCase { +class ReviewerGroupFactoryTest extends PHPUnit\Framework\TestCase { public function testGetInstance() { $groupFactory = ReviewerGroupFactory::getInstance(); diff --git a/symfony/plugins/orangehrmPerformancePlugin/test/model/reviewerGroup/ReviewerGroupTest.php b/symfony/plugins/orangehrmPerformancePlugin/test/model/reviewerGroup/ReviewerGroupTest.php index 5b2f3913c4..268c897a94 100644 --- a/symfony/plugins/orangehrmPerformancePlugin/test/model/reviewerGroup/ReviewerGroupTest.php +++ b/symfony/plugins/orangehrmPerformancePlugin/test/model/reviewerGroup/ReviewerGroupTest.php @@ -10,7 +10,7 @@ * @group performance * @author nadeera */ -class ReviewerGroupTest extends PHPUnit_Framework_TestCase { +class ReviewerGroupTest extends PHPUnit\Framework\TestCase { public function testReviewGroupId1() { $group = new SelfReviewerGroup(); diff --git a/symfony/plugins/orangehrmPerformancePlugin/test/model/service/KpiServiceTest.php b/symfony/plugins/orangehrmPerformancePlugin/test/model/service/KpiServiceTest.php index 778cba3d73..36760b968d 100644 --- a/symfony/plugins/orangehrmPerformancePlugin/test/model/service/KpiServiceTest.php +++ b/symfony/plugins/orangehrmPerformancePlugin/test/model/service/KpiServiceTest.php @@ -14,7 +14,7 @@ /** * @group performance */ -class KpiServiceTest extends PHPUnit_Framework_TestCase { +class KpiServiceTest extends PHPUnit\Framework\TestCase { public function testSaveKpi() { diff --git a/symfony/plugins/orangehrmPerformancePlugin/test/model/service/PerforamanceReviewServiceTest.php b/symfony/plugins/orangehrmPerformancePlugin/test/model/service/PerforamanceReviewServiceTest.php index f24a7bd67f..9f27dc5983 100644 --- a/symfony/plugins/orangehrmPerformancePlugin/test/model/service/PerforamanceReviewServiceTest.php +++ b/symfony/plugins/orangehrmPerformancePlugin/test/model/service/PerforamanceReviewServiceTest.php @@ -14,7 +14,7 @@ /** * @group performance */ -class PerforamanceReviewServiceTest extends PHPUnit_Framework_TestCase { +class PerforamanceReviewServiceTest extends PHPUnit\Framework\TestCase { public function testSaveReview() { diff --git a/symfony/plugins/orangehrmPerformancePlugin/test/model/status/ReviewStatusFactoryTest.php b/symfony/plugins/orangehrmPerformancePlugin/test/model/status/ReviewStatusFactoryTest.php index 3870fbb186..e5dec2c0bf 100644 --- a/symfony/plugins/orangehrmPerformancePlugin/test/model/status/ReviewStatusFactoryTest.php +++ b/symfony/plugins/orangehrmPerformancePlugin/test/model/status/ReviewStatusFactoryTest.php @@ -10,7 +10,7 @@ * @group performance * @author nadeera */ -class ReviewStatusFactoryTest extends PHPUnit_Framework_TestCase { +class ReviewStatusFactoryTest extends PHPUnit\Framework\TestCase { public function testGetStatus1(){ diff --git a/symfony/plugins/orangehrmPerformancePlugin/test/model/status/ReviewStatusTest.php b/symfony/plugins/orangehrmPerformancePlugin/test/model/status/ReviewStatusTest.php index d040e27c5b..7d0f7bd9a9 100644 --- a/symfony/plugins/orangehrmPerformancePlugin/test/model/status/ReviewStatusTest.php +++ b/symfony/plugins/orangehrmPerformancePlugin/test/model/status/ReviewStatusTest.php @@ -10,7 +10,7 @@ * @group performance * @author nadeera */ -class ReviewStatusTest extends PHPUnit_Framework_TestCase { +class ReviewStatusTest extends PHPUnit\Framework\TestCase { public function testGetInstanceTest1() { $this->assertTrue(ReviewStatusActivated::getInstance() instanceof ReviewStatusActivated); diff --git a/symfony/plugins/orangehrmPerformancePlugin/test/orangehrmPerformancePluginAllTests.php b/symfony/plugins/orangehrmPerformancePlugin/test/orangehrmPerformancePluginAllTests.php index 3f55dd6dfd..ea07b7a1ae 100644 --- a/symfony/plugins/orangehrmPerformancePlugin/test/orangehrmPerformancePluginAllTests.php +++ b/symfony/plugins/orangehrmPerformancePlugin/test/orangehrmPerformancePluginAllTests.php @@ -2,13 +2,13 @@ class orangehrmPerformancePluginAllTests { - protected function setUp() { + protected function setUp() :void { } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmPerformancePluginTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmPerformancePluginTest'); $suite->addTestFile(dirname(__FILE__) . '/model/dao/KpiDaoTest.php'); $suite->addTestFile(dirname(__FILE__) . '/model/dao/PerforamanceReviewDaoTest.php'); $suite->addTestFile(dirname(__FILE__) . '/model/reviewerGroup/ReviewerGroupFactoryTest.php'); @@ -22,7 +22,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmPerformanceTrackerPlugin/test/model/dao/PerformanceTrackerDaoTest.php b/symfony/plugins/orangehrmPerformanceTrackerPlugin/test/model/dao/PerformanceTrackerDaoTest.php index cb3f03b6af..54373fb108 100644 --- a/symfony/plugins/orangehrmPerformanceTrackerPlugin/test/model/dao/PerformanceTrackerDaoTest.php +++ b/symfony/plugins/orangehrmPerformanceTrackerPlugin/test/model/dao/PerformanceTrackerDaoTest.php @@ -21,7 +21,7 @@ /** * @group PerformanceTracker */ -class PerformanceTrackerDaoTest extends PHPUnit_Framework_TestCase { +class PerformanceTrackerDaoTest extends PHPUnit\Framework\TestCase { private $testCase; private $performanceTrackerDao; @@ -30,7 +30,7 @@ class PerformanceTrackerDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->performanceTrackerDao = new PerformanceTrackerDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmPerformanceTrackerPlugin/test/fixtures/PerformanceTrackerDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmPerformanceTrackerPlugin/test/model/service/PerformanceTrackerServiceTest.php b/symfony/plugins/orangehrmPerformanceTrackerPlugin/test/model/service/PerformanceTrackerServiceTest.php index 403b20de03..0abc3bb4f9 100644 --- a/symfony/plugins/orangehrmPerformanceTrackerPlugin/test/model/service/PerformanceTrackerServiceTest.php +++ b/symfony/plugins/orangehrmPerformanceTrackerPlugin/test/model/service/PerformanceTrackerServiceTest.php @@ -20,7 +20,7 @@ /** * @group PerformanceTracker */ -class PerformanceTrackerServiceTest extends PHPUnit_Framework_TestCase { +class PerformanceTrackerServiceTest extends PHPUnit\Framework\TestCase { private $testCase; private $performanceTrackerDao; @@ -30,7 +30,7 @@ class PerformanceTrackerServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->testCase = sfYaml::load(sfConfig::get('sf_plugins_dir') . '/orangehrmPimPlugin/test/fixtures/employee.yml'); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmPimPlugin/test/fixtures/EmployeeDao.yml'; $this->performanceTrackerService = new PerformanceTrackerService(); diff --git a/symfony/plugins/orangehrmPerformanceTrackerPlugin/test/orangehrmPerformanceTrackerPluginAllTests.php b/symfony/plugins/orangehrmPerformanceTrackerPlugin/test/orangehrmPerformanceTrackerPluginAllTests.php index adac639106..7707cee07a 100644 --- a/symfony/plugins/orangehrmPerformanceTrackerPlugin/test/orangehrmPerformanceTrackerPluginAllTests.php +++ b/symfony/plugins/orangehrmPerformanceTrackerPlugin/test/orangehrmPerformanceTrackerPluginAllTests.php @@ -2,13 +2,13 @@ class orangehrmPerformanceTrackerPluginAllTests { - protected function setUp() { + protected function setUp() :void { } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmPerformanceTrackerPluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmPerformanceTrackerPluginAllTest'); /* Dao Test Cases */ $suite->addTestFile(dirname(__FILE__) . '/model/dao/PerformanceTrackerDaoTest.php'); @@ -21,7 +21,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmPimPlugin/lib/model/doctrine/PluginEmployeeSalary.class.php b/symfony/plugins/orangehrmPimPlugin/lib/model/doctrine/PluginEmployeeSalary.class.php index 57556d1003..c032afe358 100644 --- a/symfony/plugins/orangehrmPimPlugin/lib/model/doctrine/PluginEmployeeSalary.class.php +++ b/symfony/plugins/orangehrmPimPlugin/lib/model/doctrine/PluginEmployeeSalary.class.php @@ -12,7 +12,7 @@ */ abstract class PluginEmployeeSalary extends BaseEmployeeSalary { - public function setUp() { + public function setup(): void { parent::setup(); if (KeyHandler::keyExists()) { diff --git a/symfony/plugins/orangehrmPimPlugin/test/model/dao/CustomFieldConfigurationDaoTest.php b/symfony/plugins/orangehrmPimPlugin/test/model/dao/CustomFieldConfigurationDaoTest.php index b5ef7cbf15..dea70663c2 100644 --- a/symfony/plugins/orangehrmPimPlugin/test/model/dao/CustomFieldConfigurationDaoTest.php +++ b/symfony/plugins/orangehrmPimPlugin/test/model/dao/CustomFieldConfigurationDaoTest.php @@ -4,11 +4,11 @@ * CustomFieldsDao Test Class * @group Pim */ -class CustomFieldConfigurationDaoTest extends PHPUnit_Framework_TestCase { +class CustomFieldConfigurationDaoTest extends PHPUnit\Framework\TestCase { private $customFieldConfigurationDao ; - protected function setUp() { + protected function setUp() :void { $this->customFieldConfigurationDao = new CustomFieldConfigurationDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmPimPlugin/test/fixtures/CustomFieldConfigurationDao.yml'; diff --git a/symfony/plugins/orangehrmPimPlugin/test/model/dao/EmployeeDaoReportingChainTest.php b/symfony/plugins/orangehrmPimPlugin/test/model/dao/EmployeeDaoReportingChainTest.php index d968ee7f32..fd152e578d 100644 --- a/symfony/plugins/orangehrmPimPlugin/test/model/dao/EmployeeDaoReportingChainTest.php +++ b/symfony/plugins/orangehrmPimPlugin/test/model/dao/EmployeeDaoReportingChainTest.php @@ -10,7 +10,7 @@ * @group ReportingChain * */ -class EmployeeDaoReportingChainTest extends PHPUnit_Framework_TestCase { +class EmployeeDaoReportingChainTest extends PHPUnit\Framework\TestCase { /** * @@ -22,7 +22,7 @@ class EmployeeDaoReportingChainTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->dao = new EmployeeDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmPimPlugin/test/fixtures/reporting-chain-test-data.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmPimPlugin/test/model/dao/EmployeeDaoTest.php b/symfony/plugins/orangehrmPimPlugin/test/model/dao/EmployeeDaoTest.php index 618847ede0..c3e1b176eb 100755 --- a/symfony/plugins/orangehrmPimPlugin/test/model/dao/EmployeeDaoTest.php +++ b/symfony/plugins/orangehrmPimPlugin/test/model/dao/EmployeeDaoTest.php @@ -22,7 +22,7 @@ /** * @group Pim */ -class EmployeeDaoTest extends PHPUnit_Framework_TestCase { +class EmployeeDaoTest extends PHPUnit\Framework\TestCase { private $testCase; private $employeeDao; @@ -31,7 +31,7 @@ class EmployeeDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->employeeDao = new EmployeeDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmPimPlugin/test/fixtures/EmployeeDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmPimPlugin/test/model/dao/EmployeeListDaoTest.php b/symfony/plugins/orangehrmPimPlugin/test/model/dao/EmployeeListDaoTest.php index 0d03c66c0d..ad119bc356 100755 --- a/symfony/plugins/orangehrmPimPlugin/test/model/dao/EmployeeListDaoTest.php +++ b/symfony/plugins/orangehrmPimPlugin/test/model/dao/EmployeeListDaoTest.php @@ -22,7 +22,7 @@ /** * @group Pim */ -class EmployeeListDaoTest extends PHPUnit_Framework_TestCase { +class EmployeeListDaoTest extends PHPUnit\Framework\TestCase { private $testCase; private $employeeDao; protected $fixture; @@ -30,7 +30,7 @@ class EmployeeListDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->employeeDao = new EmployeeDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmPimPlugin/test/fixtures/EmployeeDao.yml'; TestDataService::populate($this->fixture); diff --git a/symfony/plugins/orangehrmPimPlugin/test/model/dao/ReportingMethodConfigurationDaoTest.php b/symfony/plugins/orangehrmPimPlugin/test/model/dao/ReportingMethodConfigurationDaoTest.php index 099206d849..51fa83c156 100644 --- a/symfony/plugins/orangehrmPimPlugin/test/model/dao/ReportingMethodConfigurationDaoTest.php +++ b/symfony/plugins/orangehrmPimPlugin/test/model/dao/ReportingMethodConfigurationDaoTest.php @@ -21,7 +21,7 @@ /** * @group Admin */ -class ReportingMethodConfigurationDaoTest extends PHPUnit_Framework_TestCase { +class ReportingMethodConfigurationDaoTest extends PHPUnit\Framework\TestCase { private $reportingMethodConfigurationDao; protected $fixture; @@ -29,7 +29,7 @@ class ReportingMethodConfigurationDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->reportingMethodConfigurationDao = new ReportingMethodConfigurationDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmPimPlugin/test/fixtures/ReportingMethodConfigurationDao.yml'; diff --git a/symfony/plugins/orangehrmPimPlugin/test/model/dao/TerminationReasonConfigurationDaoTest.php b/symfony/plugins/orangehrmPimPlugin/test/model/dao/TerminationReasonConfigurationDaoTest.php index 99d1026e06..4ed297afbb 100644 --- a/symfony/plugins/orangehrmPimPlugin/test/model/dao/TerminationReasonConfigurationDaoTest.php +++ b/symfony/plugins/orangehrmPimPlugin/test/model/dao/TerminationReasonConfigurationDaoTest.php @@ -21,7 +21,7 @@ /** * @group Admin */ -class TerminationReasonConfigurationDaoTest extends PHPUnit_Framework_TestCase { +class TerminationReasonConfigurationDaoTest extends PHPUnit\Framework\TestCase { private $terminationReasonConfigurationDao; protected $fixture; @@ -29,7 +29,7 @@ class TerminationReasonConfigurationDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->terminationReasonConfigurationDao = new TerminationReasonConfigurationDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmPimPlugin/test/fixtures/TerminationReasonConfigurationDao.yml'; diff --git a/symfony/plugins/orangehrmPimPlugin/test/model/parameterholder/EmployeeSearchParameterHolderTest.php b/symfony/plugins/orangehrmPimPlugin/test/model/parameterholder/EmployeeSearchParameterHolderTest.php index e807a41ee0..f85c03e061 100644 --- a/symfony/plugins/orangehrmPimPlugin/test/model/parameterholder/EmployeeSearchParameterHolderTest.php +++ b/symfony/plugins/orangehrmPimPlugin/test/model/parameterholder/EmployeeSearchParameterHolderTest.php @@ -17,11 +17,11 @@ * Boston, MA 02110-1301, USA */ -class EmployeeSearchParameterHolderTest extends PHPUnit_Framework_TestCase { +class EmployeeSearchParameterHolderTest extends PHPUnit\Framework\TestCase { private $parameterHolder; - public function setup() { + public function setup(): void { $this->parameterHolder = new EmployeeSearchParameterHolder(); } diff --git a/symfony/plugins/orangehrmPimPlugin/test/model/service/CustomFieldConfigurationServiceTest.php b/symfony/plugins/orangehrmPimPlugin/test/model/service/CustomFieldConfigurationServiceTest.php index b2610ab7aa..f49d312c30 100644 --- a/symfony/plugins/orangehrmPimPlugin/test/model/service/CustomFieldConfigurationServiceTest.php +++ b/symfony/plugins/orangehrmPimPlugin/test/model/service/CustomFieldConfigurationServiceTest.php @@ -5,7 +5,7 @@ * * @group Pim */ -class CustomFieldsServiceTest extends PHPUnit_Framework_TestCase { +class CustomFieldsServiceTest extends PHPUnit\Framework\TestCase { private $testCases; private $customFieldsService; @@ -14,7 +14,7 @@ class CustomFieldsServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->testCases = sfYaml::load(sfConfig::get('sf_test_dir') . '/fixtures/admin/customFields.yml'); $this->customFieldsService = new CustomFieldConfigurationService(); } diff --git a/symfony/plugins/orangehrmPimPlugin/test/model/service/EmployeeServiceTest.php b/symfony/plugins/orangehrmPimPlugin/test/model/service/EmployeeServiceTest.php index 6078b4acc8..e3f9f301f3 100755 --- a/symfony/plugins/orangehrmPimPlugin/test/model/service/EmployeeServiceTest.php +++ b/symfony/plugins/orangehrmPimPlugin/test/model/service/EmployeeServiceTest.php @@ -20,7 +20,7 @@ /** * @group Pim */ -class EmployeeServiceTest extends PHPUnit_Framework_TestCase { +class EmployeeServiceTest extends PHPUnit\Framework\TestCase { private $testCase; private $employeeDao; @@ -30,7 +30,7 @@ class EmployeeServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->testCase = sfYaml::load(sfConfig::get('sf_plugins_dir') . '/orangehrmPimPlugin/test/fixtures/employee.yml'); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmPimPlugin/test/fixtures/EmployeeDao.yml'; $this->employeeService = new EmployeeService(); diff --git a/symfony/plugins/orangehrmPimPlugin/test/model/service/EmployeeYearsOfServiceTest.php b/symfony/plugins/orangehrmPimPlugin/test/model/service/EmployeeYearsOfServiceTest.php index 7b29842974..a1c1489bbf 100644 --- a/symfony/plugins/orangehrmPimPlugin/test/model/service/EmployeeYearsOfServiceTest.php +++ b/symfony/plugins/orangehrmPimPlugin/test/model/service/EmployeeYearsOfServiceTest.php @@ -5,13 +5,13 @@ * * @author sujith */ -class EmployeeYearsOfServiceTest extends PHPUnit_Framework_TestCase { +class EmployeeYearsOfServiceTest extends PHPUnit\Framework\TestCase { private $employeeService; /** * Setup Function */ - public function setup() { + public function setup(): void { $this->employeeService = new EmployeeService(); } diff --git a/symfony/plugins/orangehrmPimPlugin/test/model/service/PIMLeftMenuServiceTest.php b/symfony/plugins/orangehrmPimPlugin/test/model/service/PIMLeftMenuServiceTest.php index 7f2af0bf92..84ee4d3ff4 100644 --- a/symfony/plugins/orangehrmPimPlugin/test/model/service/PIMLeftMenuServiceTest.php +++ b/symfony/plugins/orangehrmPimPlugin/test/model/service/PIMLeftMenuServiceTest.php @@ -22,11 +22,11 @@ * @group Pim * */ -class PIMLeftMenuServiceTest extends PHPUnit_Framework_TestCase { +class PIMLeftMenuServiceTest extends PHPUnit\Framework\TestCase { protected $leftMenuService; - protected function setUp() { + protected function setUp() :void { $this->leftMenuService = new TestPIMLeftMenuService(); } diff --git a/symfony/plugins/orangehrmPimPlugin/test/orangehrmPimPluginAllTests.php b/symfony/plugins/orangehrmPimPlugin/test/orangehrmPimPluginAllTests.php index 6b29aa0546..80561172b1 100755 --- a/symfony/plugins/orangehrmPimPlugin/test/orangehrmPimPluginAllTests.php +++ b/symfony/plugins/orangehrmPimPlugin/test/orangehrmPimPluginAllTests.php @@ -2,13 +2,13 @@ class orangehrmPimPluginAllTests { - protected function setUp() { + protected function setUp() :void { } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmPimPluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmPimPluginAllTest'); /* Dao Test Cases */ $suite->addTestFile(dirname(__FILE__) . '/model/dao/EmployeeDaoTest.php'); @@ -29,7 +29,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/ValidatorTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/ValidatorTest.php index 59d8a98e04..7522f8d61f 100644 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/ValidatorTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/ValidatorTest.php @@ -24,7 +24,7 @@ * @group API */ -class ValidatorTest extends PHPUnit_Framework_TestCase +class ValidatorTest extends PHPUnit\Framework\TestCase { public function testValidateWithOneProperty() { diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/admin/ApiUserLoginAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/admin/ApiUserLoginAPITest.php index e51c700a38..6eba045377 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/admin/ApiUserLoginAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/admin/ApiUserLoginAPITest.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiUserLoginAPITest extends PHPUnit_Framework_TestCase +class ApiUserLoginAPITest extends PHPUnit\Framework\TestCase { private $usersAPI; @@ -37,7 +37,7 @@ class ApiUserLoginAPITest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/admin/ApiUsersAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/admin/ApiUsersAPITest.php index ffa8750d39..c19ec18b45 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/admin/ApiUsersAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/admin/ApiUsersAPITest.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiUsersAPITest extends PHPUnit_Framework_TestCase +class ApiUsersAPITest extends PHPUnit\Framework\TestCase { private $usersAPI; @@ -37,7 +37,7 @@ class ApiUsersAPITest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/admin/entity/ApiUserTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/admin/entity/ApiUserTest.php index a50ea776ec..7b1bf5453d 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/admin/entity/ApiUserTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/admin/entity/ApiUserTest.php @@ -26,13 +26,13 @@ use Orangehrm\Rest\Api\Admin\Entity\User; -class ApiUserTest extends PHPUnit_Framework_TestCase +class ApiUserTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/ApiLeaveEntitlementAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/ApiLeaveEntitlementAPITest.php index eb02f90c1d..efa93ebd7e 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/ApiLeaveEntitlementAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/ApiLeaveEntitlementAPITest.php @@ -29,14 +29,14 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiLeaveEntitlementAPITest extends PHPUnit_Framework_TestCase +class ApiLeaveEntitlementAPITest extends PHPUnit\Framework\TestCase { private $entitlementApi; /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/ApiLeavePeriodAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/ApiLeavePeriodAPITest.php index 00c0c0e777..306d9b447a 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/ApiLeavePeriodAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/ApiLeavePeriodAPITest.php @@ -28,7 +28,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiLeavePeriodAPITest extends PHPUnit_Framework_TestCase +class ApiLeavePeriodAPITest extends PHPUnit\Framework\TestCase { private $leavePeriodApi; @@ -36,7 +36,7 @@ class ApiLeavePeriodAPITest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/ApiLeaveTypeAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/ApiLeaveTypeAPITest.php index f3ab12a0f4..85ea597165 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/ApiLeaveTypeAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/ApiLeaveTypeAPITest.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiLeaveTypeAPITest extends PHPUnit_Framework_TestCase +class ApiLeaveTypeAPITest extends PHPUnit\Framework\TestCase { private $leaveTypeApi; @@ -37,7 +37,7 @@ class ApiLeaveTypeAPITest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveEntitlementTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveEntitlementTest.php index f4ae6595fb..0008325931 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveEntitlementTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveEntitlementTest.php @@ -26,7 +26,7 @@ use Orangehrm\Rest\Api\Leave\Entity\LeaveEntitlement; -class ApiLeaveEntitlementTest extends PHPUnit_Framework_TestCase +class ApiLeaveEntitlementTest extends PHPUnit\Framework\TestCase { public function testToArray(){ diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveRequestCommentTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveRequestCommentTest.php index 84e370072c..f47860fff5 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveRequestCommentTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveRequestCommentTest.php @@ -26,13 +26,13 @@ use Orangehrm\Rest\Api\Leave\Entity\LeaveRequestComment; -class ApiLeaveRequestCommentTest extends PHPUnit_Framework_TestCase +class ApiLeaveRequestCommentTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveRequestTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveRequestTest.php index 013add777a..b27f64d945 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveRequestTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveRequestTest.php @@ -26,13 +26,13 @@ use Orangehrm\Rest\Api\Leave\Entity\LeaveRequest; use Orangehrm\Rest\Api\Leave\Entity\Leave; -class ApiLeaveRequestTest extends PHPUnit_Framework_TestCase +class ApiLeaveRequestTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveTest.php index 4a3e2aa796..cc5ead07e3 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveTest.php @@ -26,13 +26,13 @@ use Orangehrm\Rest\Api\Leave\Entity\Leave; -class ApiLeaveTest extends PHPUnit_Framework_TestCase +class ApiLeaveTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveTypeTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveTypeTest.php index 175f822c3d..1516099d3c 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveTypeTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/leave/entity/ApiLeaveTypeTest.php @@ -26,13 +26,13 @@ use Orangehrm\Rest\Api\Leave\Entity\LeaveType; -class ApiLeaveTypeTest extends PHPUnit_Framework_TestCase +class ApiLeaveTypeTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiCustomFieldAPITest1.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiCustomFieldAPITest1.php index fcb18cf612..1a36123fd7 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiCustomFieldAPITest1.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiCustomFieldAPITest1.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiCustomFieldAPITest1 extends PHPUnit_Framework_TestCase +class ApiCustomFieldAPITest1 extends PHPUnit\Framework\TestCase { private $employeeCustomFieldAPI; @@ -37,7 +37,7 @@ class ApiCustomFieldAPITest1 extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeContactDetailAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeContactDetailAPITest.php index 757cc35e2c..9d2c5e8c3f 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeContactDetailAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeContactDetailAPITest.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiEmployeeContactDetailAPITest extends PHPUnit_Framework_TestCase +class ApiEmployeeContactDetailAPITest extends PHPUnit\Framework\TestCase { /** * @var EmployeeContactDetailAPI @@ -40,7 +40,7 @@ class ApiEmployeeContactDetailAPITest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeCustomFieldAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeCustomFieldAPITest.php index c6dd229122..3cd30cecaa 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeCustomFieldAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeCustomFieldAPITest.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiEmployeeCustomFieldAPITest extends PHPUnit_Framework_TestCase +class ApiEmployeeCustomFieldAPITest extends PHPUnit\Framework\TestCase { private $employeeCustomFieldAPI; @@ -37,7 +37,7 @@ class ApiEmployeeCustomFieldAPITest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeDependentAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeDependentAPITest.php index 8b9c2520a4..bf6c9b5e36 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeDependentAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeDependentAPITest.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiEmployeeDependentAPITest extends PHPUnit_Framework_TestCase +class ApiEmployeeDependentAPITest extends PHPUnit\Framework\TestCase { private $employeeDependantAPI; @@ -37,7 +37,7 @@ class ApiEmployeeDependentAPITest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeDetailAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeDetailAPITest.php index e35415b103..70c846e2c7 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeDetailAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeDetailAPITest.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiEmployeeDetailAPITest extends PHPUnit_Framework_TestCase +class ApiEmployeeDetailAPITest extends PHPUnit\Framework\TestCase { private $employeeDetailAPI; @@ -37,7 +37,7 @@ class ApiEmployeeDetailAPITest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeEducationAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeEducationAPITest.php index 43472b7f5b..92feecf454 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeEducationAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeEducationAPITest.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiEmployeeEducationAPITest extends PHPUnit_Framework_TestCase +class ApiEmployeeEducationAPITest extends PHPUnit\Framework\TestCase { /** * @var EmployeeEducationAPI @@ -40,7 +40,7 @@ class ApiEmployeeEducationAPITest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeJobDetailAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeJobDetailAPITest.php index 8fa4bbaf87..c228eca701 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeJobDetailAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeJobDetailAPITest.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiEmployeeJobDetailAPITest extends PHPUnit_Framework_TestCase +class ApiEmployeeJobDetailAPITest extends PHPUnit\Framework\TestCase { private $employeeJobDetailAPI; @@ -37,7 +37,7 @@ class ApiEmployeeJobDetailAPITest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeSaveAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeSaveAPITest.php index 28d781c275..7abaaf46c3 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeSaveAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeSaveAPITest.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiEmployeeSaveAPITest extends PHPUnit_Framework_TestCase +class ApiEmployeeSaveAPITest extends PHPUnit\Framework\TestCase { public function testSaveEmployee() diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeSearchAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeSearchAPITest.php index 5120959c51..9a2a789f6f 100644 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeSearchAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeSearchAPITest.php @@ -29,14 +29,14 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiEmployeeSearchAPITest extends PHPUnit_Framework_TestCase +class ApiEmployeeSearchAPITest extends PHPUnit\Framework\TestCase { private $employeeSearchAPI; /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeTerminateAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeTerminateAPITest.php index 0adb671428..5499566d3d 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeTerminateAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeTerminateAPITest.php @@ -29,10 +29,10 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiEmployeeTerminateAPITest extends PHPUnit_Framework_TestCase +class ApiEmployeeTerminateAPITest extends PHPUnit\Framework\TestCase { - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeWorkExperienceAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeWorkExperienceAPITest.php index ef1481e462..73521bdb5b 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeWorkExperienceAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiEmployeeWorkExperienceAPITest.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiEmployeeWorkExperienceAPITest extends PHPUnit_Framework_TestCase +class ApiEmployeeWorkExperienceAPITest extends PHPUnit\Framework\TestCase { private $employeeWorkExperienceAPI; @@ -37,7 +37,7 @@ class ApiEmployeeWorkExperienceAPITest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiSupervisorAPITest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiSupervisorAPITest.php index 0408b32665..b425c3003a 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiSupervisorAPITest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/ApiSupervisorAPITest.php @@ -29,7 +29,7 @@ use Orangehrm\Rest\Http\Request; use Orangehrm\Rest\Http\Response; -class ApiSupervisorAPITest extends PHPUnit_Framework_TestCase +class ApiSupervisorAPITest extends PHPUnit\Framework\TestCase { private $employeeSupervisorAPI; @@ -37,7 +37,7 @@ class ApiSupervisorAPITest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $sfEvent = new sfEventDispatcher(); $sfRequest = new sfWebRequest($sfEvent); diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiCustomFieldTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiCustomFieldTest.php index 3250252be8..0b0e22e325 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiCustomFieldTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiCustomFieldTest.php @@ -26,13 +26,13 @@ use Orangehrm\Rest\Api\Pim\Entity\CustomField; -class ApiCustomFieldTest extends PHPUnit_Framework_TestCase +class ApiCustomFieldTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeContactDetailTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeContactDetailTest.php index 221f71fa38..8dbc283cb6 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeContactDetailTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeContactDetailTest.php @@ -26,13 +26,13 @@ use Orangehrm\Rest\Api\Pim\Entity\EmployeeContactDetail; -class ApiEmployeeContactDetailTest extends PHPUnit_Framework_TestCase +class ApiEmployeeContactDetailTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeCustomFieldTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeCustomFieldTest.php index 6d2a7e9df6..213c885349 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeCustomFieldTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeCustomFieldTest.php @@ -26,13 +26,13 @@ use Orangehrm\Rest\Api\Pim\Entity\EmployeeCustomField; -class ApiEmployeeCustomFieldTest extends PHPUnit_Framework_TestCase +class ApiEmployeeCustomFieldTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeDependentTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeDependentTest.php index 2138a24182..a1cf08f5dc 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeDependentTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeDependentTest.php @@ -25,13 +25,13 @@ */ use Orangehrm\Rest\Api\Pim\Entity\EmployeeDependent; -class ApiEmployeeDependantTest extends PHPUnit_Framework_TestCase +class ApiEmployeeDependantTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeJobDetailTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeJobDetailTest.php index 40ed310a5c..d9ee2df222 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeJobDetailTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeJobDetailTest.php @@ -25,13 +25,13 @@ */ use Orangehrm\Rest\Api\Pim\Entity\EmployeeJobDetail; -class ApiEmployeeJobDetailTest extends PHPUnit_Framework_TestCase +class ApiEmployeeJobDetailTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeTest.php index bde4bb82ec..0101866a76 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiEmployeeTest.php @@ -26,13 +26,13 @@ use Orangehrm\Rest\Api\Pim\Entity\Employee; use Orangehrm\Rest\Api\Pim\Entity\Supervisor; -class ApiEmployeeTest extends PHPUnit_Framework_TestCase +class ApiEmployeeTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiSupervisorTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiSupervisorTest.php index 4ae5c32d5b..378309aab9 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiSupervisorTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/ApiSupervisorTest.php @@ -26,13 +26,13 @@ use Orangehrm\Rest\Api\Pim\Entity\Supervisor; -class ApiSupervisorTest extends PHPUnit_Framework_TestCase +class ApiSupervisorTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/EmployeeTest.php b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/EmployeeTest.php index 17452174fa..495874736a 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/EmployeeTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/api/pim/entity/EmployeeTest.php @@ -25,13 +25,13 @@ */ use Orangehrm\Rest\Api\Pim\Entity\Employee; -class HttpEmployeeTest extends PHPUnit_Framework_TestCase +class HttpEmployeeTest extends PHPUnit\Framework\TestCase { /** * Set up method */ - protected function setUp() + protected function setUp() :void { } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/http/HttpResponseTest.php b/symfony/plugins/orangehrmRESTPlugin/test/http/HttpResponseTest.php index 10be2ccfb5..8fa9d5757e 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/http/HttpResponseTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/http/HttpResponseTest.php @@ -19,14 +19,14 @@ */ use Orangehrm\Rest\Http\Response; -class HttpResponseTest extends PHPUnit_Framework_TestCase{ +class HttpResponseTest extends PHPUnit\Framework\TestCase{ /** * @var Response */ private $response = null; - protected function setUp() { + protected function setUp() :void { $this->response = new Response(array(array('name'=>'Samantha'))); } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/http/RequestParamsTest.php b/symfony/plugins/orangehrmRESTPlugin/test/http/RequestParamsTest.php index 2446d37ee3..ab25097e20 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/http/RequestParamsTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/http/RequestParamsTest.php @@ -23,7 +23,7 @@ * @group API */ -class RequestParamsTest extends PHPUnit_Framework_TestCase +class RequestParamsTest extends PHPUnit\Framework\TestCase { public function testGetQueryParam(){ diff --git a/symfony/plugins/orangehrmRESTPlugin/test/model/service/HttpEmployeeServiceTest.php b/symfony/plugins/orangehrmRESTPlugin/test/model/service/HttpEmployeeServiceTest.php index aa0c67d66c..073c8cd5e3 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/model/service/HttpEmployeeServiceTest.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/model/service/HttpEmployeeServiceTest.php @@ -28,7 +28,7 @@ use Orangehrm\Rest\Api\Pim\EmployeeService; use Orangehrm\Rest\Api\Pim\Entity\Employee; -class HttpEmployeeServiceTest extends PHPUnit_Framework_TestCase +class HttpEmployeeServiceTest extends PHPUnit\Framework\TestCase { private $employeeService; @@ -36,7 +36,7 @@ class HttpEmployeeServiceTest extends PHPUnit_Framework_TestCase /** * Set up method */ - protected function setUp() + protected function setUp() :void { $this->employeeService = new EmployeeService(); } diff --git a/symfony/plugins/orangehrmRESTPlugin/test/orangehrmRESTPluginAllTests.php b/symfony/plugins/orangehrmRESTPlugin/test/orangehrmRESTPluginAllTests.php index cad73efb0d..983cd41947 100755 --- a/symfony/plugins/orangehrmRESTPlugin/test/orangehrmRESTPluginAllTests.php +++ b/symfony/plugins/orangehrmRESTPlugin/test/orangehrmRESTPluginAllTests.php @@ -20,12 +20,12 @@ class orangehrmRESTPluginAllTests { - protected function setUp() { + protected function setUp() :void { } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmRESTPluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmRESTPluginAllTest'); /* HTTP test Cases */ @@ -77,7 +77,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/CandidateDaoTest.php b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/CandidateDaoTest.php index b6e5b25bf3..ec25ad8f36 100644 --- a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/CandidateDaoTest.php +++ b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/CandidateDaoTest.php @@ -22,7 +22,7 @@ /** * @group Recruitment */ -class CandidateDaoTest extends PHPUnit_Framework_TestCase { +class CandidateDaoTest extends PHPUnit\Framework\TestCase { private $candidateDao; protected $fixture; @@ -30,7 +30,7 @@ class CandidateDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->candidateDao = new CandidateDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmRecruitmentPlugin/test/fixtures/CandidateDao.yml'; diff --git a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/JobInterviewDaoTest.php b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/JobInterviewDaoTest.php index 85b1aa831e..1e9c80f544 100644 --- a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/JobInterviewDaoTest.php +++ b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/JobInterviewDaoTest.php @@ -22,7 +22,7 @@ /** * @group Recruitment */ -class JobInterviewDaoTest extends PHPUnit_Framework_TestCase { +class JobInterviewDaoTest extends PHPUnit\Framework\TestCase { private $jobInterviewDao; protected $fixture; @@ -30,7 +30,7 @@ class JobInterviewDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->jobInterviewDao = new JobInterviewDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmRecruitmentPlugin/test/fixtures/CandidateDao.yml'; diff --git a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/RecruitmentAttachmentDaoTest.php b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/RecruitmentAttachmentDaoTest.php index e2fcedf217..9dc68b7752 100644 --- a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/RecruitmentAttachmentDaoTest.php +++ b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/RecruitmentAttachmentDaoTest.php @@ -22,7 +22,7 @@ /** * @group Recruitment */ -class RecruitmentAttachmentDaoTest extends PHPUnit_Framework_TestCase { +class RecruitmentAttachmentDaoTest extends PHPUnit\Framework\TestCase { private $recruitmentAttachmentDao; protected $fixture; @@ -30,7 +30,7 @@ class RecruitmentAttachmentDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->recruitmentAttachmentDao = new RecruitmentAttachmentDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmRecruitmentPlugin/test/fixtures/CandidateDao.yml'; diff --git a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/VacancyDaoTest.php b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/VacancyDaoTest.php index f26ea2ba2a..639e8e13dd 100644 --- a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/VacancyDaoTest.php +++ b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/dao/VacancyDaoTest.php @@ -22,7 +22,7 @@ /** * @group Recruitment */ -class VacancyDaoTest extends PHPUnit_Framework_TestCase { +class VacancyDaoTest extends PHPUnit\Framework\TestCase { private $vacancyDao; protected $fixture; @@ -30,7 +30,7 @@ class VacancyDaoTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->vacancyDao = new VacancyDao(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmRecruitmentPlugin/test/fixtures/CandidateDao.yml'; diff --git a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/CandidateHistoryServiceTest.php b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/CandidateHistoryServiceTest.php index 78d44a92e5..c683ae9187 100644 --- a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/CandidateHistoryServiceTest.php +++ b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/CandidateHistoryServiceTest.php @@ -23,7 +23,7 @@ /** * @group Recruitment */ -class CandidateHistoryServiceTest extends PHPUnit_Framework_TestCase { +class CandidateHistoryServiceTest extends PHPUnit\Framework\TestCase { private $candidateHistoryService; protected $fixture; @@ -31,7 +31,7 @@ class CandidateHistoryServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->candidateHistoryService = new CandidateHistoryService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmRecruitmentPlugin/test/fixtures/CandidateDao.yml'; diff --git a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/CandidateServiceTest.php b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/CandidateServiceTest.php index 26af67f2fd..8790bf61bd 100644 --- a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/CandidateServiceTest.php +++ b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/CandidateServiceTest.php @@ -23,7 +23,7 @@ /** * @group Recruitment */ -class CandidateServiceTest extends PHPUnit_Framework_TestCase { +class CandidateServiceTest extends PHPUnit\Framework\TestCase { private $candidateService; protected $fixture; @@ -31,7 +31,7 @@ class CandidateServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->candidateService = new CandidateService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmRecruitmentPlugin/test/fixtures/CandidateDao.yml'; diff --git a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/JobInterviewServiceTest.php b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/JobInterviewServiceTest.php index 3a1d3d3643..bc7ebd9030 100644 --- a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/JobInterviewServiceTest.php +++ b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/JobInterviewServiceTest.php @@ -23,7 +23,7 @@ /** * @group Recruitment */ -class JobInterviewServiceTest extends PHPUnit_Framework_TestCase { +class JobInterviewServiceTest extends PHPUnit\Framework\TestCase { private $jobInterviewService; protected $fixture; @@ -31,7 +31,7 @@ class JobInterviewServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->jobInterviewService = new JobInterviewService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmRecruitmentPlugin/test/fixtures/CandidateDao.yml'; diff --git a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/RecruitmentAttachmentServiceTest.php b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/RecruitmentAttachmentServiceTest.php index 41fdad98b4..683563e767 100644 --- a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/RecruitmentAttachmentServiceTest.php +++ b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/RecruitmentAttachmentServiceTest.php @@ -23,7 +23,7 @@ /** * @group Recruitment */ -class RecruitmentAttachmentServiceTest extends PHPUnit_Framework_TestCase { +class RecruitmentAttachmentServiceTest extends PHPUnit\Framework\TestCase { private $recruitmentAttachmentService; protected $fixture; @@ -31,7 +31,7 @@ class RecruitmentAttachmentServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->recruitmentAttachmentService = new RecruitmentAttachmentService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmRecruitmentPlugin/test/fixtures/CandidateDao.yml'; diff --git a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/VacancyServiceTest.php b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/VacancyServiceTest.php index 2346b2dbb1..0539ab8bf2 100644 --- a/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/VacancyServiceTest.php +++ b/symfony/plugins/orangehrmRecruitmentPlugin/test/model/service/VacancyServiceTest.php @@ -23,7 +23,7 @@ /** * @group Recruitment */ -class VacancyServiceTest extends PHPUnit_Framework_TestCase { +class VacancyServiceTest extends PHPUnit\Framework\TestCase { private $vacancyService; protected $fixture; @@ -31,7 +31,7 @@ class VacancyServiceTest extends PHPUnit_Framework_TestCase { /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->vacancyService = new VacancyService(); $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmRecruitmentPlugin/test/fixtures/CandidateDao.yml'; diff --git a/symfony/plugins/orangehrmRecruitmentPlugin/test/orangehrmRecruitmentPluginAllTests.php b/symfony/plugins/orangehrmRecruitmentPlugin/test/orangehrmRecruitmentPluginAllTests.php index edd5bff8ee..c074e0cf5b 100644 --- a/symfony/plugins/orangehrmRecruitmentPlugin/test/orangehrmRecruitmentPluginAllTests.php +++ b/symfony/plugins/orangehrmRecruitmentPlugin/test/orangehrmRecruitmentPluginAllTests.php @@ -2,13 +2,13 @@ class orangehrmRecruitmentPluginAllTests { - protected function setUp() { + protected function setUp() :void { } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmRecruitmentPluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmRecruitmentPluginAllTest'); /* Dao Test Cases */ $suite->addTestFile(dirname(__FILE__) . '/model/dao/CandidateDaoTest.php'); @@ -29,7 +29,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/model/dao/PasswordResetDaoTest.php b/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/model/dao/PasswordResetDaoTest.php index 4c981f2334..2d80e916d1 100644 --- a/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/model/dao/PasswordResetDaoTest.php +++ b/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/model/dao/PasswordResetDaoTest.php @@ -20,7 +20,7 @@ /** * @group SecurityAuthentication */ -class PasswordResetDaoTest extends PHPUnit_Framework_TestCase +class PasswordResetDaoTest extends PHPUnit\Framework\TestCase { /** * @var PasswordResetDao @@ -32,7 +32,7 @@ class PasswordResetDaoTest extends PHPUnit_Framework_TestCase * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->dao = new PasswordResetDao; $this->changedTable = ''; } diff --git a/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/model/service/PasswordResetServiceTest.php b/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/model/service/PasswordResetServiceTest.php index aecef6ca32..8d76bbe718 100644 --- a/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/model/service/PasswordResetServiceTest.php +++ b/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/model/service/PasswordResetServiceTest.php @@ -20,7 +20,7 @@ /** * @group SecurityAuthentication */ -class PasswordResetServiceTest extends PHPUnit_Framework_TestCase +class PasswordResetServiceTest extends PHPUnit\Framework\TestCase { /** * @var PasswordResetService @@ -31,7 +31,7 @@ class PasswordResetServiceTest extends PHPUnit_Framework_TestCase * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->secuirtyAuthService = new PasswordResetService; } diff --git a/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/orangehrmSecurityAuthenticationPluginAllTests.php b/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/orangehrmSecurityAuthenticationPluginAllTests.php index 6a8a96114b..6d07222b23 100644 --- a/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/orangehrmSecurityAuthenticationPluginAllTests.php +++ b/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/orangehrmSecurityAuthenticationPluginAllTests.php @@ -6,7 +6,7 @@ class orangehrmSecurityAuthenticationPluginAllTests { public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmSecurityAuthenticationPluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmSecurityAuthenticationPluginAllTest'); $basePath = dirname(__FILE__); @@ -18,7 +18,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/utility/PasswordHelperTest.php b/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/utility/PasswordHelperTest.php index 17d2ce0fc8..8f322ff59d 100644 --- a/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/utility/PasswordHelperTest.php +++ b/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/utility/PasswordHelperTest.php @@ -3,7 +3,7 @@ /** * @group SecurityAuthentication */ -class PasswordHelperTest extends PHPUnit_Framework_TestCase { +class PasswordHelperTest extends PHPUnit\Framework\TestCase { /** * @var PasswordHelper @@ -15,7 +15,7 @@ class PasswordHelperTest extends PHPUnit_Framework_TestCase { * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->passwordHelper = new PasswordHelper(); $this->securityAuthConfigService = new SecurityAuthenticationConfigService(); } @@ -24,7 +24,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/utility/SecurityAuthenticationConfigServiceTest.php b/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/utility/SecurityAuthenticationConfigServiceTest.php index 05682eab56..268d01edc1 100644 --- a/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/utility/SecurityAuthenticationConfigServiceTest.php +++ b/symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/utility/SecurityAuthenticationConfigServiceTest.php @@ -3,7 +3,7 @@ /** * @group SecurityAuthentication */ -class SecurityAuthenticationConfigServiceTest extends PHPUnit_Framework_TestCase { +class SecurityAuthenticationConfigServiceTest extends PHPUnit\Framework\TestCase { /** * @var SecurityAuthenticationConfigService @@ -14,7 +14,7 @@ class SecurityAuthenticationConfigServiceTest extends PHPUnit_Framework_TestCase * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() { + protected function setUp() :void { $this->securityAuthConfigService = new SecurityAuthenticationConfigService(); $this->securityAuthConfigService = new ConfigService(); $user = new SystemUser; @@ -31,7 +31,7 @@ protected function setUp() { * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() { + protected function tearDown() :void { } diff --git a/symfony/plugins/orangehrmTimePlugin/test/model/dao/TimesheetDaoTest.php b/symfony/plugins/orangehrmTimePlugin/test/model/dao/TimesheetDaoTest.php index 7d17887c9c..ec3aee4fb3 100755 --- a/symfony/plugins/orangehrmTimePlugin/test/model/dao/TimesheetDaoTest.php +++ b/symfony/plugins/orangehrmTimePlugin/test/model/dao/TimesheetDaoTest.php @@ -22,14 +22,14 @@ * * @group Time */ -class TimesheetDaoTest extends PHPUnit_Framework_TestCase { +class TimesheetDaoTest extends PHPUnit\Framework\TestCase { private $timesheetDao; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { $this->timesheetDao = new TimesheetDao(); TestDataService::truncateSpecificTables(array('SystemUser', 'Employee')); diff --git a/symfony/plugins/orangehrmTimePlugin/test/model/dao/TimesheetPeriodDaoTest.php b/symfony/plugins/orangehrmTimePlugin/test/model/dao/TimesheetPeriodDaoTest.php index 2480b3a412..09e50ce332 100755 --- a/symfony/plugins/orangehrmTimePlugin/test/model/dao/TimesheetPeriodDaoTest.php +++ b/symfony/plugins/orangehrmTimePlugin/test/model/dao/TimesheetPeriodDaoTest.php @@ -22,14 +22,14 @@ * * @group Time */ -class TimesheetPeriodDaoTest extends PHPUnit_Framework_TestCase { +class TimesheetPeriodDaoTest extends PHPUnit\Framework\TestCase { private $timesheetPeriodDao; /** * Set up method */ - protected function setUp() { + protected function setUp() :void { TestDataService::truncateTables(array('Config')); TestDataService::populate(sfConfig::get('sf_plugins_dir') . '/orangehrmTimePlugin/test/fixtures/TimesheetPeriodDao.yml'); $this->timesheetPeriodDao = new TimesheetPeriodDao(); diff --git a/symfony/plugins/orangehrmTimePlugin/test/model/service/TimesheetPeriodServiceTest.php b/symfony/plugins/orangehrmTimePlugin/test/model/service/TimesheetPeriodServiceTest.php index fc25a1549a..9fe81525fa 100755 --- a/symfony/plugins/orangehrmTimePlugin/test/model/service/TimesheetPeriodServiceTest.php +++ b/symfony/plugins/orangehrmTimePlugin/test/model/service/TimesheetPeriodServiceTest.php @@ -22,11 +22,11 @@ * * @group Time */ -class TimesheetPeriodServiceTest extends PHPUnit_Framework_Testcase { +class TimesheetPeriodServiceTest extends PHPUnit\Framework\TestCase { private $timesheetPeriodService; - protected function setUp() { + protected function setUp() :void { $this->timesheetPeriodService = new TimesheetPeriodService(); $pdo = Doctrine_Manager::getInstance()->getCurrentConnection()->getDbh(); diff --git a/symfony/plugins/orangehrmTimePlugin/test/model/service/TimesheetServiceTest.php b/symfony/plugins/orangehrmTimePlugin/test/model/service/TimesheetServiceTest.php index 86e80ee6d1..62fb8076d3 100755 --- a/symfony/plugins/orangehrmTimePlugin/test/model/service/TimesheetServiceTest.php +++ b/symfony/plugins/orangehrmTimePlugin/test/model/service/TimesheetServiceTest.php @@ -22,12 +22,12 @@ * * @group Time */ -class TimesheetServiceTest extends PHPUnit_Framework_Testcase { +class TimesheetServiceTest extends PHPUnit\Framework\TestCase { private $timesheetService; private $fixture; - protected function setUp() { + protected function setUp() :void { $this->fixture = sfConfig::get('sf_plugins_dir') . '/orangehrmTimePlugin/test/fixtures/TimesheetService.yml'; diff --git a/symfony/plugins/orangehrmTimePlugin/test/orangehrmTimePluginAllTests.php b/symfony/plugins/orangehrmTimePlugin/test/orangehrmTimePluginAllTests.php index 33dfdc5a66..e61594b9e9 100755 --- a/symfony/plugins/orangehrmTimePlugin/test/orangehrmTimePluginAllTests.php +++ b/symfony/plugins/orangehrmTimePlugin/test/orangehrmTimePluginAllTests.php @@ -19,13 +19,13 @@ */ class orangehrmTimePluginAllTests { - protected function setUp() { + protected function setUp() :void { } public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('orangehrmTimePluginAllTest'); + $suite = new PHPUnit\Framework\TestSuite('orangehrmTimePluginAllTest'); /* Dao Test Cases */ $suite->addTestFile(dirname(__FILE__) . '/model/dao/TimesheetDaoTest.php'); @@ -50,7 +50,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/plugins/orangehrmTimePlugin/test/timesheetPeriod/MonthlyTimesheetPeriodTest.php b/symfony/plugins/orangehrmTimePlugin/test/timesheetPeriod/MonthlyTimesheetPeriodTest.php index b9fbb4aa2f..b24e31100c 100755 --- a/symfony/plugins/orangehrmTimePlugin/test/timesheetPeriod/MonthlyTimesheetPeriodTest.php +++ b/symfony/plugins/orangehrmTimePlugin/test/timesheetPeriod/MonthlyTimesheetPeriodTest.php @@ -20,11 +20,11 @@ /** * @group Time */ -class MonthlyTimesheetPeriodTest extends PHPUnit_Framework_TestCase { +class MonthlyTimesheetPeriodTest extends PHPUnit\Framework\TestCase { private $monthlyTimesheetPeriod; - protected function setUp() { + protected function setUp() :void { TestDataService::truncateTables(array('Config')); TestDataService::populate(sfConfig::get('sf_plugins_dir') . '/orangehrmTimePlugin/test/fixtures/MonthlyTimesheetPeriod.yml'); $this->monthlyTimesheetPeriod = new MonthlyTImesheetPeriod(); diff --git a/symfony/plugins/orangehrmTimePlugin/test/timesheetPeriod/WeeklyTimesheetPeriodTest.php b/symfony/plugins/orangehrmTimePlugin/test/timesheetPeriod/WeeklyTimesheetPeriodTest.php index 157c6cd07f..35c8aa7453 100755 --- a/symfony/plugins/orangehrmTimePlugin/test/timesheetPeriod/WeeklyTimesheetPeriodTest.php +++ b/symfony/plugins/orangehrmTimePlugin/test/timesheetPeriod/WeeklyTimesheetPeriodTest.php @@ -20,11 +20,11 @@ /** * @group Time */ -class WeeklyTimesheetPeriodTest extends PHPUnit_Framework_TestCase { +class WeeklyTimesheetPeriodTest extends PHPUnit\Framework\TestCase { private $weeklyTimesheetPeriod; - protected function setUp() { + protected function setUp() :void { TestDataService::populate(sfConfig::get('sf_plugins_dir') . '/orangehrmTimePlugin/test/fixtures/WeeklyTimesheetPeriod.yml'); $this->weeklyTimesheetPeriod = new WeeklyTimesheetPeriod(); diff --git a/symfony/test/AppsOrangeHRMAllTests.php b/symfony/test/AppsOrangeHRMAllTests.php index c68f9633bb..e6b193b4bd 100644 --- a/symfony/test/AppsOrangeHRMAllTests.php +++ b/symfony/test/AppsOrangeHRMAllTests.php @@ -29,7 +29,7 @@ protected function setUp() { public static function suite() { - $suite = new PHPUnit_Framework_TestSuite('Apps OrangeHRM unit tests'); + $suite = new PHPUnit\Framework\TestSuite('Apps OrangeHRM unit tests'); /* Service Test Cases */ $suite->addTestFile(dirname(__FILE__) . '/model/core/service/EmailServiceTest.php'); @@ -39,7 +39,7 @@ public static function suite() { } public static function main() { - PHPUnit_TextUI_TestRunner::run(self::suite()); + PHPUnit\TextUI\TestRunner::run(self::suite()); } } diff --git a/symfony/test/lib/utility/EncryptionListenerTest.php b/symfony/test/lib/utility/EncryptionListenerTest.php index c592c9d9fc..b5d0cd7cce 100644 --- a/symfony/test/lib/utility/EncryptionListenerTest.php +++ b/symfony/test/lib/utility/EncryptionListenerTest.php @@ -1,12 +1,12 @@ key1 = '31fae626564189808b80f3fc06e58e5f0b6c64ddac1bc8ad298d8123229628421062b42e9e3304d5c554b94f5e32a88a72e4cbed76d9ac5c6c9dabc1d8db72d4'; $this->key2 = '31fae626564184892ea403fc44448e52226c64dda44bc1aa298d81232291283314624424943404d4444444444444444444444444444444444c9dabc1d8db72d4'; diff --git a/symfony/test/model/core/service/EmailServiceTest.php b/symfony/test/model/core/service/EmailServiceTest.php index 1016508a1c..69624cc387 100644 --- a/symfony/test/model/core/service/EmailServiceTest.php +++ b/symfony/test/model/core/service/EmailServiceTest.php @@ -1,13 +1,13 @@ mailService = new EmailService(); }