-
Notifications
You must be signed in to change notification settings - Fork 1
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
Code coverage #106
base: main
Are you sure you want to change the base?
Code coverage #106
Conversation
use PHPUnit\Framework\TestCase; | ||
use Prophecy\PhpUnit\ProphecyTrait; | ||
|
||
final class TrustedCertificateResolverTest extends TestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we even test this class?
If yes - is this correct and how to test RuntimeException of this class
If no - should I add this into phpunit.xml exclusions
|
||
public function test_it_resolved_indexed_tpay_transaction_channels(): void | ||
{ | ||
$this->markTestSkipped('Issue with GetTpayTransactionsChannels'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot make it to work as this GetTpayTransactionsChannels throws:
Typed property GetTpayTransactionsChannels::$result must not be accessed before initialization
@@ -53,10 +53,6 @@ private function getInputClassFrom(array $context): ?string | |||
|
|||
private function getConstructorArgumentName(string $inputClass): string | |||
{ | |||
if (!is_a($inputClass, $this->getSupportedInterface(), true)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might not be even required as the function supports checks this upfront
<directory>src/Test</directory> | ||
<directory>src/Twig</directory> | ||
|
||
<!-- other files --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok to exclude those files?
@@ -41,5 +41,37 @@ | |||
|
|||
<extensions> | |||
<extension class="Symfony\Component\Panther\ServerExtension" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<extension class="Symfony\Component\Panther\ServerExtension" /> | |
<bootstrap class="Symfony\Component\Panther\ServerExtension" /> |
This can be changed from 10.5 phpunit - it will not throw that in this part XML is not valid
#96
Current state of coverage
usefull command:
XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html=coverage/ -d --min-coverage=90 tests/Unit/