unit-testing-tips
Functional-core-imperative-shell
unit-testing-tips | Functional-core-imperative-shell | |
---|---|---|
8 | 4 | |
1,098 | 91 | |
- | - | |
5.1 | 0.0 | |
3 months ago | almost 2 years ago | |
HTML | ||
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
unit-testing-tips
- Need Help for writing test, especially about PHPUNIT
-
Self Improvement
I'd recommend you learn TDD, which is IMO an unvalued technique, but a very important one. You can check my tips for testing: https://github.com/sarven/unit-testing-tips there are also provided two very good books that will boost your knowledge about testing practices.
-
Unit testing tips by examples in PHP
https://github.com/sarven/unit-testing-tips#mock-vs-stub
Functional-core-imperative-shell
-
Unit testing tips by examples in PHP
I usually formulate this as lifting side-effects up in the stack trace. Done well you end up with functional core, imperative shell.
-
How do you test your code ?
The pattern functional core, imperative shell will help you make bigger chunks of your code-base be unit testable without database or file scaffolding.
-
Some notes on composability
[1]: Functional core, imperative shell
-
Why Dependency Injectiondi
Better summary than I could provide: https://github.com/kbilsted/Functional-core-imperative-shell/blob/master/README.md
What are some alternatives?
php-ddd-example - 🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 6
Amazon Web Service SDK - Official repository of the AWS SDK for PHP (@awsforphp)
GildedRose-Refactoring-Kata - Starting code for the GildedRose Refactoring Kata in many programming languages.
http-kernel - Provides a structured process for converting a Request into a Response
Codeception - Full-stack testing PHP framework
Symfony Panther - A browser testing and web crawling library for PHP and Symfony
bref - Serverless PHP on AWS Lambda
Pest - Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
Lift-Kata - starting position for the Lift Kata with an Approval Testing approach
Laravel - Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.