2017 © Pedro Peláez
 

library mockyll

Mocking library for PHP (>= 5.4).

image

redhead/mockyll

Mocking library for PHP (>= 5.4).

  • Sunday, September 15, 2013
  • by redhead
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Mockyll

Nice and simple mocking library for PHP based on GMock for Groovy., (*1)

It offers: - simple usage - no complicated setup - class and interface mocking based on inheritance - partial mocks, (*2)

Install

Install the library using composer:, (*3)

$ composer require redhead/mockyll:@dev

That's it!, (*4)

Simple usage

$mockController = new Mockyll\MockController;

$myClassMock = $mockController->mock('MyClass');
$myClassMock->greet('world')->returns('hello world!');

$mockController->play(function() use ($myClassMock) {
  $myClassMock->greet('world'); // == 'hello world!'
}

The Versions

15/09 2013

dev-master

9999999-dev

Mocking library for PHP (>= 5.4).

  Sources   Download

MIT

The Requires

 

by Radek Ježdík