assessment
Mockery
Our great sponsors
assessment | Mockery | |
---|---|---|
1 | 3 | |
8 | 10,558 | |
- | 0.2% | |
0.0 | 9.5 | |
about 1 year ago | 4 days ago | |
PHP | PHP | |
- | BSD 3-clause "New" or "Revised" 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.
assessment
Mockery
-
I share my authentication server.
Continuous Integration - Testify, sqlmock, Mockery, Github Actions
-
Test doubles
Mockery is another framework for creating test doubles. It can be used with PHPUnit, phpspec, Behat, or any other testing framework. I find it especially powerful when working with legacy code, due to its support for creating partial mocks or mocking hard dependencies.
-
Testing with immutable PSR-7 objects and Prophecy
This works great if a method is tested that modifies and returns an object; we'll get an instance of that object and we are able to run all sorts of assertions on it. But what if this is not the case. What if we have a situation where a value object is passed as a parameter, some modifications are done and the value object is passed to another object. Something like the middleware from the example earlier. Some testing frameworks like Mockery offer spies to test these situations. When using Prophecy this situation can be handled using Argument::that():
What are some alternatives?
Front-end-Developer-Interview-Questions - A list of helpful front-end related questions you can use to interview potential candidates, test yourself or completely ignore.
Prophecy - Highly opinionated mocking framework for PHP 5.3+
wp-browser - The easy and reliable way to test WordPress with Codeception. 10 years of proven success.
PHPUnit - The PHP Unit Testing framework.
php-ddd-example - 🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 6
Faker
Codeception - Full-stack testing PHP framework
AspectMock - The most powerful and flexible mocking framework for PHPUnit / Codeception.
over-api - ¡BACKEND OVER APP! API REST IMPLEMENTANDO CONCEPTOS DE ARQUITECTURA HEXAGONAL, DDD, TDD Y SOLID. HECHO EN LARAVEL & PHP
Phake - PHP Mocking Framework
PHP VCR - Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.