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
Add twig extension #36
Conversation
Codecov Report
@@ Coverage Diff @@
## 1.0.x #36 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 20 28 +8
===========================================
Files 8 11 +3
Lines 174 193 +19
===========================================
+ Hits 174 193 +19
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Thanks @ajgarlag for the excellent work here 👏👏👏 I added a change suggestion about PHPUnit API usage.
I will create a doc page based on the issue of how to use the Pheature Flags Twig Extension
PD: If you want don't worry about Codecov messages, at this point is not our priority to have 100% test coverage, also we can rework them to apply the integration test approach we are using in other compiler passes.
PD2: If you have any questions, feedback, or so on, you are welcome to ask. Thanks again for contributing 🙌🙌🙌 .
public function testItShouldExposeTwoTests(): void | ||
{ | ||
$extension = new PheatureFlagsExtension(new Toggle($this->createStub(FeatureFinder::class))); | ||
self::assertCount(2, $extension->getTests()); |
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.
self::assertCount(2, $extension->getTests()); | |
$this->assertCount(2, $extension->getTests()); |
We decide some time ago to use always $this to maintain the same syntax in all PHPUnit API usage pheature-flags/toggle-core#49
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.
Fixed
0b63e99
to
9b2c9c1
Compare
9b2c9c1
to
27d4128
Compare
27d4128
to
f2c4377
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
Nice job!!! Ready to release 🚢🚢🚢
Closes #32