Libraries tagged by test-doubles
chubbyphp/chubbyphp-mock
218666 Downloads
A strict mocking solution. It works with any testing framework; the examples below use PHPUnit.
wmde/clock
99823 Downloads
Simple interface to get the current time without binding to global system resources. Includes test doubles!
jeroen/message-reporter
55445 Downloads
An interface to report and relay arbitrary messages to registered handlers, plus test doubles
lastzero/test-tools
44708 Downloads
Increases testing productivity by adding a service container and self-initializing fakes to PHPUnit
zalas/phpunit-doubles
14120 Downloads
Initialises test doubles in PHPUnit test cases for you
tweakers/symfony-service-mock
71419 Downloads
Proxy layer to allow services to have their internals replaced with a test double, without affecting a service-container's (i.e. Symfony) bindings.
bkubicki/magento2-unit-tests-doubles
14917 Downloads
Unit tests doubles for Magento 2
jasonmccreary/test-double
701 Downloads
A modern PHP double library that puts developer experience first.
tomkyle/mock-psr
3571 Downloads
Mock common PSR standard components in PhpUnit tests
rasuvaeff/understudy-psalm
135 Downloads
Psalm plugin for the understudy test double library: matcher-aware setup closures and misuse diagnostics
rasuvaeff/understudy-phpunit
130 Downloads
PHPUnit adapter for the understudy test double library: automatic verification and cleanup after every test
rasuvaeff/understudy-phpstan
137 Downloads
PHPStan extension for the understudy test double library: matcher-aware specification closures and misuse rules
etel/phpunit-double
283 Downloads
Provides double configurators with fluent interface support.
jeroen-de-dauw/file-fetcher
1023 Downloads
Simple file fetching interface
mwx/nextcloud-testing
138 Downloads
Test doubles for a Nextcloud app's unit tests: an in-memory IAppConfig, IUserConfig, system config and ICache, an IL10N that answers in English, a MIME type detector, the Emitter stub, and a bootstrap that finds the server or falls back to nextcloud/ocp