Blame | Letzte Änderung | Log anzeigen | RSS feed
Mockery=======Mockery is a simple yet flexible PHP mock object framework for use in unittesting with PHPUnit, PHPSpec or any other testing framework. Its core goal isto offer a test double framework with a succinct API capable of clearlydefining all possible object operations and interactions using a humanreadable Domain Specific Language (DSL). Designed as a drop in alternative toPHPUnit's phpunit-mock-objects library, Mockery is easy to integrate withPHPUnit and can operate alongside phpunit-mock-objects without the Worldending.Mock Objects------------In unit tests, mock objects simulate the behaviour of real objects. They arecommonly utilised to offer test isolation, to stand in for objects which donot yet exist, or to allow for the exploratory design of class APIs withoutrequiring actual implementation up front.The benefits of a mock object framework are to allow for the flexiblegeneration of such mock objects (and stubs). They allow the setting ofexpected method calls and return values using a flexible API which is capableof capturing every possible real object behaviour in way that is stated asclose as possible to a natural language description.Getting Started---------------Ready to dive into the Mockery framework? Then you can get started by readingthe "Getting Started" section!.. toctree:::hidden:getting_started/index.. include:: getting_started/map.rst.incReference---------The reference contains a complete overview of all features of the Mockeryframework... toctree:::hidden:reference/index.. include:: reference/map.rst.incMockery-------Learn about Mockery's configuration, reserved method names, exceptions..... toctree:::hidden:mockery/index.. include:: mockery/map.rst.incCookbook--------Want to learn some easy tips and tricks? Take a look at the cookbook articles!.. toctree:::hidden:cookbook/index.. include:: cookbook/map.rst.inc