Home

mock PHP packages

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

mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

  • 7
  • 15715
  • 25323
  • 9044
  • 396

phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

  • 105
  • 446
  • 58490
  • 7461
  • 203

mikey179/vfsstream

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

  • 149
  • 2531
  • 6304
  • 1219
  • 99

phpunit/phpunit-mock-objects

Mock Object library for PHPUnit

  • 162
  • 436
  • 46571
  • 4921
  • 152

phake/phake

The Phake mock testing library

  • 627
  • 440
  • 913
  • 445
  • 80

crysalead/kahlan

The PHP Test Framework for Freedom, Truth and Justice.

  • 851
  • 60
  • 25
  • 1016
  • 57

codeception/aspect-mock

Experimental Mocking Framework powered by Aspects

  • 881
  • 161
  • 637
  • 703
  • 100

kahlan/kahlan

The PHP Test Framework for Freedom, Truth and Justice.

  • 1039
  • 198
  • 215
  • 1016
  • 57

rtens/mockster

PHP Mocking framework

  • 1060
  • 1
  • 1
  • 13
  • 2

internations/http-mock

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

  • 1648
  • 35
  • 155
  • 360
  • 51

ptrofimov/xpmock

PHPUnit: simple syntax to create mock-objects

  • 1697
  • 183
  • 138
  • 77
  • 4

jiriknesl/mockista

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

  • 1699
  • 0
  • 1
  • 8
  • 2

schnipseljagd/testdatabuilder

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

  • 1845
  • 4
  • 4
  • 3
  • 3

polishsymfonycommunity/symfony-mocker-container

Provides base Symfony dependency injection container enabling service mocking.

  • 1901
  • 46
  • 486
  • 130
  • 7

bcncommerce/stream-wrapper

PHP stream wrapper for testing classes which interact with files

  • 2311
  • 2
  • 1
  • 5
  • 0

guzzle/plugin-mock

Guzzle Mock plugin

  • 2416
  • 91
  • 30
  • 3
  • 1

letsdrink/ouzo

Ouzo PHP MVC framework

  • 2433
  • 2
  • 2
  • 63
  • 8

janmarek/mockista

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

  • 2522
  • 69
  • 66
  • 30
  • 14

facebook/fbmock

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

  • 2609
  • 0
  • 7
  • 182
  • 44

icecave/isolator

Dependency injection for global functions.

  • 2730
  • 39
  • 343
  • 32
  • 2

simpletest/simpletest

SimpleTest is a framework for unit testing, web site testing and mock objects for PHP.

  • 2860
  • 70
  • 80
  • 139
  • 43

shyru/timedilation

Mocking time() for PHPUnit

  • 2925
  • 0
  • 1
  • 0
  • 0

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.

  • 2928
  • 231
  • 567
  • 103
  • 16

php-http/mock-client

Mock HTTP client

  • 2974
  • 331
  • 571
  • 34
  • 14

box/shmock

Shorthand for (PHPUnit) Mocking

  • 3052
  • 1
  • 8
  • 35
  • 9

Built with Laravel by psampaz, powered by DigitalOcean