Skip to content

Commit

Permalink
Improved coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 committed Mar 3, 2024
1 parent 3bd6095 commit 8c1a7e8
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/PHPUnitCompat/TestSuiteOverridingTraitMethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function suite()
{
$test_case_reflection = new \ReflectionClass(SampleTest::class);

$test_suite = new TestSuiteFixture($test_case_reflection);
$test_suite = new TestSuiteWithOverrideFixture($test_case_reflection);

return $test_suite;
}
Expand Down
30 changes: 30 additions & 0 deletions tests/PHPUnitCompat/TestSuiteUsingTraitMethodTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/**
* This file is part of the PHPUnit-Compat library.
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @copyright Alexander Obuhovich <[email protected]>
* @link https://github.com/console-helpers/phpunit-compat
*/

namespace PHPUnitCompat;


use PHPUnit\Framework\TestCase;
use Tests\ConsoleHelpers\PHPUnitCompat\SampleTest;
use Tests\ConsoleHelpers\PHPUnitCompat\TestSuiteWithoutOverrideFixture;

final class TestSuiteUsingTraitMethodTest extends TestCase
{

public static function suite()
{
$test_case_reflection = new \ReflectionClass(SampleTest::class);

$test_suite = new TestSuiteWithoutOverrideFixture($test_case_reflection);

return $test_suite;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use ConsoleHelpers\PHPUnitCompat\AbstractTestSuite;

class TestSuiteFixture extends AbstractTestSuite
class TestSuiteWithOverrideFixture extends AbstractTestSuite
{

/**
Expand Down
19 changes: 19 additions & 0 deletions tests/PHPUnitCompat/TestSuiteWithoutOverrideFixture.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
/**
* This file is part of the PHPUnit-Compat library.
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @copyright Alexander Obuhovich <[email protected]>
* @link https://github.com/console-helpers/phpunit-compat
*/

namespace Tests\ConsoleHelpers\PHPUnitCompat;


use ConsoleHelpers\PHPUnitCompat\AbstractTestSuite;

class TestSuiteWithoutOverrideFixture extends AbstractTestSuite
{

}

0 comments on commit 8c1a7e8

Please sign in to comment.