Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace phpunit namespace #1

Open
wants to merge 1 commit into
base: php-7.4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,24 @@

<testsuites>
<testsuite name="All Tests">
<file>symfony/plugins/orangehrmAdminPlugin/test/model/service/CompanyStructureServiceTest.php</file>
<file>symfony/test/AppsOrangeHRMAllTests.php</file>
<file>symfony/plugins/orangehrmAdminPlugin/test/orangehrmAdminPluginAllTests.php</file>
<file>symfony/plugins/orangehrmAttendancePlugin/test/orangehrmAttendancePluginAllTests.php</file>
<file>symfony/plugins/orangehrmBeaconPlugin/test/orangehrmBeaconPluginAllTests.php</file>
<file>symfony/plugins/orangehrmCorePlugin/test/orangehrmCorePluginAllTests.php</file>
<file>symfony/plugins/orangehrmCoreWebServicePlugin/test/orangehrmCoreWebServicePluginAllTests.php</file>
<file>symfony/plugins/orangehrmCorporateDirectoryPlugin/test/orangehrmCorporateDirectoryPluginAllTests.php</file>
<file>symfony/plugins/orangehrmLeavePlugin/test/orangehrmLeavePluginAllTests.php</file>
<file>symfony/plugins/orangehrmMaintenancePlugin/test/orangehrmMaintenancePluginAllTests.php</file>
<file>symfony/plugins/orangehrmMarketPlacePlugin/test/orangehrmMarketPlacePluginAllTests.php</file>
<file>symfony/plugins/orangehrmOpenidAuthenticationPlugin/test/orangehrmOpenidAuthenticationPluginAllTests.php</file>
<file>symfony/plugins/orangehrmPerformancePlugin/test/orangehrmPerformancePluginAllTests.php</file>
<file>symfony/plugins/orangehrmPerformanceTrackerPlugin/test/orangehrmPerformanceTrackerPluginAllTests.php</file>
<file>symfony/plugins/orangehrmPimPlugin/test/orangehrmPimPluginAllTests.php</file>
<file>symfony/plugins/orangehrmRecruitmentPlugin/test/orangehrmRecruitmentPluginAllTests.php</file>
<file>symfony/plugins/orangehrmRESTPlugin/test/orangehrmRESTPluginAllTests.php</file>
<file>symfony/plugins/orangehrmSecurityAuthenticationPlugin/test/orangehrmSecurityAuthenticationPluginAllTests.php</file>
<file>symfony/plugins/orangehrmTimePlugin/test/orangehrmTimePluginAllTests.php</file>
Comment on lines +22 to +39
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the right way. But I could not configure symfony/test/PluginAllTests.php

</testsuite>
</testsuites>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
abstract class PluginEmailConfiguration extends BaseEmailConfiguration
{
public function setUp() {
public function setup(): void {
parent::setup();
if (KeyHandler::keyExists()) {
$key = KeyHandler::readKey();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
/**
* @group Admin
*/
class CompanyStructureDaoTest extends PHPUnit_Framework_TestCase {
class CompanyStructureDaoTest extends PHPUnit\Framework\TestCase {

private $companyStructureDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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';

Expand All @@ -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 {

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
/**
* @group Admin
*/
class CustomerDaoTest extends PHPUnit_Framework_TestCase {
class CustomerDaoTest extends PHPUnit\Framework\TestCase {

private $customerDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
/**
* @group Admin
*/
class EducationDaoTest extends PHPUnit_Framework_TestCase {
class EducationDaoTest extends PHPUnit\Framework\TestCase {

private $educationDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
*/
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;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
/**
* @group Admin
*/
class EmploymentStatusDaoTest extends PHPUnit_Framework_TestCase {
class EmploymentStatusDaoTest extends PHPUnit\Framework\TestCase {

private $empStatusDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
/**
* @group Admin
*/
class JobCategoryDaoTest extends PHPUnit_Framework_TestCase {
class JobCategoryDaoTest extends PHPUnit\Framework\TestCase {

private $jobCatDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
/**
* @group Admin
*/
class JobTitleDaoTest extends PHPUnit_Framework_TestCase {
class JobTitleDaoTest extends PHPUnit\Framework\TestCase {

private $jobTitleDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
/**
* @group Admin
*/
class LanguageDaoTest extends PHPUnit_Framework_TestCase {
class LanguageDaoTest extends PHPUnit\Framework\TestCase {

private $languageDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
/**
* @group Admin
*/
class LicenseDaoTest extends PHPUnit_Framework_TestCase {
class LicenseDaoTest extends PHPUnit\Framework\TestCase {

private $licenseDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
/**
* @group Admin
*/
class LocationDaoTest extends PHPUnit_Framework_TestCase {
class LocationDaoTest extends PHPUnit\Framework\TestCase {

private $locationDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
/**
* @group Admin
*/
class MembershipDaoTest extends PHPUnit_Framework_TestCase {
class MembershipDaoTest extends PHPUnit\Framework\TestCase {

private $membershipDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
/**
* @group Admin
*/
class ModuleDaoTest extends PHPUnit_Framework_TestCase {
class ModuleDaoTest extends PHPUnit\Framework\TestCase {

private $moduleDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
/**
* @group Admin
*/
class NationalityDaoTest extends PHPUnit_Framework_TestCase {
class NationalityDaoTest extends PHPUnit\Framework\TestCase {

private $nationalityDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand All @@ -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 {

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
/**
* @group Admin
*/
class OrganizationDaoTest extends PHPUnit_Framework_TestCase {
class OrganizationDaoTest extends PHPUnit\Framework\TestCase {

private $organizationDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
/**
* @group Admin
*/
class PayGradeDaoTest extends PHPUnit_Framework_TestCase {
class PayGradeDaoTest extends PHPUnit\Framework\TestCase {

private $payGradeDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
/**
* @group Admin
*/
class ProjectDaoTest extends PHPUnit_Framework_TestCase {
class ProjectDaoTest extends PHPUnit\Framework\TestCase {

private $projectDao;
protected $fixture;

/**
* 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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
/**
* @group Admin
*/
class SkillDaoTest extends PHPUnit_Framework_TestCase {
class SkillDaoTest extends PHPUnit\Framework\TestCase {

private $skillDao;
protected $fixture;

/**
* 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';
Expand Down
Loading