Libraries tagged by mock objects
crimsonkissaki/mockmaker
44 Downloads
Whether you call them doubles, stubs, mocks, partials, fakes, or something else there are times when a mocking library such as PHPUnit's mockBuilder, Mockery, Prophecy, etc. just doesn't do exactly what you need or want. Sometimes you just need a concrete class implementation to run through the unit test wringer or a full end to end functional unit test suite. MockMaker aims to simplify the process of generating concrete fake ORM entity objects. Flexible and extendable, the generated seed code can be altered to suit your particular project with relative ease. That means after the initial setup you can re-run MockMaker for any new entities that get added in or update existing entities that change with little to no fuss. What's more, once MockMaker has made your files it's done; you don't have to include it in your code base and can use the generated files like any other project class.
pdo-proxy/pdo-proxy
26 Downloads
PDO Proxy is a simple, event-driven PDO wrapper that allows to intercept and alter execution of all PDO methods. The PDOProxy\PDO and PDOProxy\PDOStatement classes extend the native PDO and PDOStatement classes, therefore they are compatible with any method expecting regular PDO objects.
alaneor/ldap
61 Downloads
A simple class encapsulation of php's ldap functions
zeus/mock
14 Downloads
This library allows you to create mock objects.
silencedis/phpunit-mock-helper
1357 Downloads
A convenient helper for creating mock objects for phpunit. The helper uses the phpunit's mock builder. But it allows to create a mock object in one step using simple configuration.
shadiakiki1986/ffa-php-mock
28 Downloads
Mock objects of ffa-php-core for development and testing
megao-phpunit/phpunit-mock-objects
12 Downloads
Mock Object library for PHPUnit
johnshopkins/mock-object
11 Downloads
A library that helps to create mock objects in PHPUnit
jervdesign/php-unit-mock
774 Downloads
Base Class for creating reusable PHPUnit Mock Objects
openmage-module-fostering/zookal_mock
3 Downloads
Transparent auto detecting of disabled core modules & exten. Providing mock objects for not breaking Magento.
apie/mock-objects
6 Downloads
Composer package of the apie library: mock objects
mf1dd/object-builder
1 Downloads
Automatically creates fully populated PHP object instances with random, type-safe values. Designed for test fixtures and runtime object generation. Supports all PHP class types — regular classes, readonly classes, abstract classes, enums, traits, interfaces, and built-in stock classes like DateInterval or ArrayObject. Recursively resolves nested object graphs, detects property names for semantically meaningful values (timezone, email, firstname …), and offers constraint-based value ranges via a fluent API. No framework required; zero runtime dependencies beyond nikic/php-parser. PHP 8.2+.
rtablada/model-mockers
13 Downloads
A wrapper that allows for wicked fast mocking of Eloquent Models
pedrohenrique-conectala/teste01
3 Downloads
feedtailor/mocking-property-modifier
103 Downloads
A property modifier for Mock object.