Functional-core-imperative-shell
unit-testing-tips
Our great sponsors
Functional-core-imperative-shell | unit-testing-tips | |
---|---|---|
4 | 8 | |
91 | 1,098 | |
- | - | |
0.0 | 5.1 | |
almost 2 years ago | 3 months ago | |
HTML | ||
Apache License 2.0 | MIT License |
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.
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
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
What are some alternatives?
Amazon Web Service SDK - Official repository of the AWS SDK for PHP (@awsforphp)
php-ddd-example - 🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 6
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
Composer - Dependency Manager for PHP
GildedRose-Refactoring-Kata - Starting code for the GildedRose Refactoring Kata in many programming languages.
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.
TestIt - Generate unit testing boilerplate from kotlin files.