Home

mock PHP packages

279 PHP Packages found for mock | Latest mock packages | RSS

mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

  • 10
  • 12239
  • 18279
  • 6998
  • 339

phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

  • 111
  • 354
  • 44004
  • 5616
  • 186

mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

  • 132
  • 2120
  • 4362
  • 1079
  • 91

phpunit/phpunit-mock-objects

Mock Object library for PHPUnit

  • 155
  • 414
  • 42560
  • 4016
  • 154

phake/phake

The Phake mock testing library

  • 560
  • 396
  • 815
  • 437
  • 73

crysalead/kahlan

Behavior-Driven Development (BDD) library.

  • 762
  • 55
  • 29
  • 942
  • 54

codeception/aspect-mock

Experimental Mocking Framework powered by Aspects

  • 773
  • 145
  • 556
  • 663
  • 88

kahlan/kahlan

The PHP Test Framework for Freedom, Truth and Justice.

  • 977
  • 174
  • 154
  • 942
  • 54

ptrofimov/xpmock

PHPUnit: simple syntax to create mock-objects

  • 1523
  • 180
  • 128
  • 74
  • 4

internations/http-mock

Mock HTTP requests on the server side in your PHP unit tests

  • 1570
  • 30
  • 137
  • 340
  • 46

polishsymfonycommunity/symfony-mocker-container

Provides base Symfony dependency injection container enabling service mocking.

  • 1761
  • 44
  • 365
  • 112
  • 7

facebook/fbmock

FBMock is a PHP mocking framework designed to be simple and easy to use.

  • 2212
  • 0
  • 6
  • 184
  • 45

guzzle/plugin-mock

Guzzle Mock plugin

  • 2238
  • 81
  • 33
  • 3
  • 1

janmarek/mockista

Mockista is library for mocking, which I've written, because I find mocking in PHPUnit awful.

  • 2294
  • 70
  • 67
  • 30
  • 15

icecave/isolator

Dependency injection for global functions.

  • 2453
  • 39
  • 356
  • 31
  • 4

simpletest/simpletest

Unit testing, mock objects and web testing framework for PHP built around test cases.

  • 2796
  • 61
  • 69
  • 143
  • 42

polishsymfonycommunity/symfony2-mocker-extension

Behat extension for mocking services defined in the Symfony2 dependency injection container.

  • 2830
  • 6
  • 50
  • 29
  • 8

letsdrink/ouzo

Ouzo PHP MVC framework

  • 3092
  • 2
  • 2
  • 58
  • 5

schnipseljagd/testdatabuilder

Helps you to build your mocks, stubs and test data in a nice oop way.

  • 3608
  • 2
  • 5
  • 3
  • 3

box/shmock

Shorthand for (PHPUnit) Mocking

  • 3857
  • 1
  • 8
  • 34
  • 9

php-mock/php-mock-phpunit

Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.

  • 4288
  • 175
  • 337
  • 82
  • 10

brain/monkey

Mocking utility for PHP functions and WordPress plugin API

  • 4923
  • 137
  • 43
  • 117
  • 16

php-http/mock-client

Mock HTTP client

  • 5146
  • 247
  • 306
  • 22
  • 10

eloquent/phony

Mocks, stubs, and spies for PHP.

  • 5209
  • 58
  • 99
  • 181
  • 3

balihoo/phockito-unit

A library easing the combination of Phockito & PHP Unit

  • 5341
  • 6
  • 5
  • 2
  • 3

Built with Laravel by psampaz, powered by DigitalOcean