2017 © Pedro PelĆ”ez
 

library mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

image

bilge/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  • Monday, April 16, 2018
  • by Bilge
  • Repository
  • 2 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 318 Forks
  • 0 Open issues
  • 26 Versions
  • 0 % Grown

The README.md

Mockery

Build Status Latest Stable Version Total Downloads, (*1)

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending., (*2)

Mockery is released under a New BSD License., (*3)

Installation

To install Mockery, run the command below and you will get the latest version, (*4)

composer require --dev mockery/mockery

If you want to run the tests:, (*5)

vendor/bin/phpunit

Mock Objects

In unit tests, mock objects simulate the behaviour of real objects. They are commonly utilised to offer test isolation, to stand in for objects which do not yet exist, or to allow for the exploratory design of class APIs without requiring actual implementation up front., (*6)

The benefits of a mock object framework are to allow for the flexible generation of such mock objects (and stubs). They allow the setting of expected method calls and return values using a flexible API which is capable of capturing every possible real object behaviour in way that is stated as close as possible to a natural language description., (*7)

Documentation

The current version can be seen at docs.mockery.io., (*8)

The Versions

16/04 2018

dev-cache-deps

dev-cache-deps http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

14/04 2018

dev-issue-871

dev-issue-871 https://github.com/mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

24/01 2017

dev-third-party-integrations

dev-third-party-integrations http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

24/01 2017

dev-travis-extensions

dev-travis-extensions http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

24/01 2017

dev-master

9999999-dev http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

24/01 2017

dev-remove-coverage-exclusion

dev-remove-coverage-exclusion http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

22/01 2017

dev-travis-onefile

dev-travis-onefile http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

22/01 2017

dev-travis-after-success-master

dev-travis-after-success-master http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

22/01 2017

dev-travis-after-success

dev-travis-after-success http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

22/01 2017

dev-clone

dev-clone http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

22/01 2017

dev-psr-2

dev-psr-2 http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

22/01 2017

dev-deprecated-mock-syntax

dev-deprecated-mock-syntax http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

06/01 2017

0.9.x-dev

0.9.9999999.9999999-dev http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

01/04 2016

dev-patch-2

dev-patch-2 http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

11/02 2015

dev-phpunit-integration-trait

dev-phpunit-integration-trait http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2
  • lib-pcre >=7.0

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

11/02 2015

dev-patch-1

dev-patch-1 http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2
  • lib-pcre >=7.0

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

22/01 2015

dev-test-double-api

dev-test-double-api http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2
  • lib-pcre >=7.0

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

22/12 2014

0.9.3

0.9.3.0 http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2
  • lib-pcre >=7.0

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

03/09 2014

0.9.2

0.9.2.0 http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2
  • lib-pcre >=7.0

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

02/05 2014

0.9.1

0.9.1.0 http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2
  • lib-pcre >=7.0

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

05/02 2014

0.9.0

0.9.0.0 http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2
  • lib-pcre >=7.0

 

The Development Requires

bdd tdd test mock stub test double mockery testing library mock objects

25/04 2013

dev-simplify-stub-dsl

dev-simplify-stub-dsl http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2

 

The Development Requires

  • hamcrest/hamcrest 1.1.0

bdd tdd test mock stub test double mockery testing library mock objects

01/04 2013

0.8.0

0.8.0.0 http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2

 

The Development Requires

  • hamcrest/hamcrest 1.1.0

bdd tdd test mock stub test double mockery testing library mock objects

19/03 2013

dev-php-parser

dev-php-parser http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

  • hamcrest/hamcrest 1.1.0

bdd tdd test mock stub test double mockery testing library mock objects

04/02 2013

dev-generator-fail

dev-generator-fail http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2

 

The Development Requires

  • hamcrest/hamcrest 1.1.0

bdd tdd test mock stub test double mockery testing library mock objects

24/01 2012

0.7.2

0.7.2.0 http://github.com/padraic/mockery

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.

  Sources   Download

New BSD

The Requires

  • php >=5.3.2

 

bdd tdd test mock stub test double mockery testing library mock objects