2017 © Pedro Peláez
 

library function-mocker

Function mocking with Patchwork

image

lucatume/function-mocker

Function mocking with Patchwork

  • Friday, July 27, 2018
  • by theAverageDev
  • Repository
  • 2 Watchers
  • 7 Stars
  • 66,196 Installations
  • PHP
  • 9 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 59 Versions
  • 62 % Grown

The README.md

Function Mocker

A Patchwork powered function mocker., (*1)

Build Status, (*2)

Show me the code

This can be written in a PHPUnit test suite, (*3)

<?php

// FunctionMocker needs the functions to be defined to replace them
function get_option($option)
{
    // no-op
}

function update_option($option, $value)
{
    // no-op
}

// The class under test
class Logger
{
    public function log($type, $message)
    {
        $option = get_option('log');
        $option[] = sprintf('[%s] %s - %s', date(DATE_ATOM, time()), $type, $message);
        update_option('log', sprintf('[%s] %s - %s', date(DATE_ATOM, time()), $type, $message));
    }
}

class InternaFunctionReplacementTest extends \PHPUnit\Framework\TestCase
{
    /**
     * It should log the correct message
     * @test
     */
    public function log_the_correct_message()
    {
        $mockTime = time();
        \tad\FunctionMocker\FunctionMocker::replace('time', $mockTime);
        \tad\FunctionMocker\FunctionMocker::replace('get_option', []);
        $update_option = \tad\FunctionMocker\FunctionMocker::replace('update_option');

        $logger = new Logger();

        $logger->log('error', 'There was an error');

        $expected = sprintf('[%s] error - There was an error', date(DATE_ATOM, $mockTime));
        $update_option->wasCalledWithOnce(['log', $expected]);
    }
}

Installation

Either zip and move it to the appropriate folder or use Composer, (*4)

composer require lucatume/function-mocker:~1.0

Usage

In a perfect world you should never need to mock static methods and functions, should use TDD to write better object-oriented code and use it as a design tool.
But sometimes a grim and sad need to mock those functions and static methods might arise and this library is here to help., (*5)

Bootstrapping

To make Fucntion Mocker behave in its wrapping power (a power granted by patchwork) the FunctionMocker::init method needs to be called in the proper bootstrap file of Codeception or PHPUnit like this, (*6)

<?php
// This is global bootstrap for autoloading
use tad\FunctionMocker\FunctionMocker;

require_once dirname( __FILE__ ) . '/../vendor/autoload.php';

FunctionMocker::init(['blacklist' => dirname(__DIR__)]);

The init method will accept a configuration array supporting the following arguments:, (*7)

  • include or whitelist - array|string; a list of absolute paths that should be included in the patching.
  • exclude or blacklist - array|string; a list of absolute paths that should be excluded in the patching.
  • cache-path - string; the absolute path to the folder where Pathchwork should cache the wrapped files.
  • redefinable-internals - array; a list of internal PHP functions that are available for replacement; if an internal function (a function defined by PHP) is not listed here then it will never be replaced in the tests.
\tad\FunctionMocker\FunctionMocker::init([
    'whitelist' => [dirname(__DIR__) . '/src',dirname(__DIR__) . '/vendor'],
    'blacklist' => [dirname(__DIR__) . '/included', dirname(__FILE__) . 'patchwork-cache', dirname(__DIR__)],
    'cache-path' => dirname(__DIR__) . 'patchwork-cache,
    'redefinable-internals' => ['time', 'filter_var']
]);

Excluding the project root folder, dirname(__DIR__) in the examples, is usually a good idea., (*8)

Note: the library will ignore patchwork.json files even if no configuration is provided to the FunctionMocker::init method., (*9)

Initialization parameters

Function mocker will take care of initializing Patchwork with some sensible defaults but those initialization parameters can be customized:, (*10)

  • whitelist - array or string, def. empty; a list of absolute paths that should be included in the patching.
  • blacklist - array or string, def. empty; a list of absolute paths that should be excluded from the patching; the Patchwork library itself and the Function Mocker library are always excluded.
  • cache-path - string, def. cache folder; the absolute path to the folder where Pathcwork should cache the wrapped files.
  • redefinable-internals array, def. empty; a list of internal PHP functions that are available for replacement; any internal function (defined by the PHP Standard Library) that needs to be replaced in the tests should be listed here.

setUp and tearDown methods

The library is meant to be used in the context of a PHPUnit test case and provides two static methods that must be inserted in the test case setUp and tearDown method for the function mocker to work properly:, (*11)

class MyTest extends \PHPUnit_Framework_TestCase {
    public function setUp(){
        // before any other set up method
        FunctionMocker::setUp();
        ...
    }

    public function tearDown(){
        ...

        // after any other tear down method
        FunctionMocker::tearDown();
    }
}

Functions

Replacing functions

The library will allow for replacement of defined and undefined functions at test run time using the FunctionMocker::replace method like:, (*12)

FunctionMocker::replace('myFunction', $returnValue);

and will allow setting a return value as a real value or as a function callback:, (*13)

public function testReplacedFunctionReturnsValue(){
    FunctionMocker::replace('myFunction', 23);

    $this->assertEquals(23, myFunction());
}

public fuction testReplacedFunctionReturnsCallback(){
    FunctionMocker::replace('myFunction', function($arg){
            return $arg + 1;
        });

    $this->assertEquals(24, myFunction());
}

If you need to replace a function and make it return a sequence of values, one at each call, then you can use the FunctionMocker::replaceInOrder method:, (*14)

public function testReplacedFunctionReturnsValue(){
    FunctionMocker::replaceInOrder('myFunction', [23, 89, 2389]);

    $this->assertEquals(23, myFunction());
    $this->assertEquals(89, myFunction());
    $this->assertEquals(2389, myFunction());
}

Spying on functions

If the value returned by the FunctionMocker::replace method is stored in a variable than checks for calls can be made on that function:, (*15)

public function testReplacedFunctionReturnsValue(){
    $myFunction = FunctionMocker::replace('myFunction', 23);

    $this->assertEquals(23, myFunction());

    $myFunction->wasCalledOnce();
    $myFunction->wasCalledWithOnce(23);
}

The methods available for a function spy are the ones listed below in the "Methods" section., (*16)

Batch replacement of functions

When in need to stub out a batch of functions needed for a component to work this can be done:, (*17)

public function testBatchFunctionReplacement(){
    $functions = ['functionOne', 'functionTwo', 'functionThree', ...];

    FunctionMocker::replace($functions, function($arg){
        return $arg;
        });

    foreach ($functions as $f){
        $this->assertEquals('foo', $f('foo'));
    }
}

When replacing a batch of functions the return value will be an array of spy objects that can be referenced using the function name:, (*18)

public function testBatchFunctionReplacement(){
    $functions = ['functionOne', 'functionTwo', 'functionThree', ...];

    $replacedFunctions = FunctionMocker::replace($functions, function($arg){
        return $arg;
        });

    functionOne();

    $functionOne = $replacedFunctions['functionOne'];
    $functionOne->wasCalledOnce();

}

Static methods

Replacing static methods

Similarly to functions the library will allow for replacement of defined static methods using the FunctionMocker::replace method, (*19)

public function testReplacedStaticMethodReturnsValue(){
    FunctionMocker::replace('Post::getContent', 'Lorem ipsum');

    $this->assertEquals('Lorem ipsum', Post::getContent());
}

again similarly to functions a callback function return value can be set:, (*20)

public function testReplacedStaticMethodReturnsCallback(){
    FunctionMocker::replace('Post::formatTitle', function($string){
        return "foo $string baz";
        });

    $this->assertEquals('foo lorem baz', Post::formatTitle('lorem'));
}

Note that only public static methods can be replaced., (*21)

Spying of static methods

Storing the return value of the FunctionMocker::replace function allows spying on static methods using the methods listed in the "Methods" section below like:, (*22)

public function testReplacedStaticMethodReturnsValue(){
    $getContent = FunctionMocker::replace('Post::getContent', 'Lorem ipsum');

    $this->assertEquals('Lorem ipsum', Post::getContent());

    $getContent->wasCalledOnce();
    $getContent->wasNotCalledWith('some');
    ...
}

Batch replacement of static methods

Static methods too can be replaced in a batch assigning to any replaced method the same return value or callback:, (*23)

public function testBatchReplaceStaticMethods(){
    $methods = ['Foo::one', 'Foo::two', 'Foo::three'];

    FunctionMocker::replace($methods, 'foo');

    $this->assertEquals('foo', Foo::one());
    $this->assertEquals('foo', Foo::two());
    $this->assertEquals('foo', Foo::three());
}

When batch replacing static methods FunctionMocker::replace will return an array of spy objects indexed by the method name that can be used as any other static method spy object;, (*24)

public function testBatchReplaceStaticMethods(){
    $methods = ['Foo::one', 'Foo::two', 'Foo::three'];

    $replacedMethods = FunctionMocker::replace($methods, 'foo');

    Foo::one();

    $one = $replacedMethods['one'];
    $one->wasCalledOnce();
}

Instance methods

Replacing instance methods

When trying to replace an instance method the FunctionMocker::replace method will return an extended PHPUnit mock object implementing all the original methods and some (see below), (*25)

// file SomeClass.php

class SomeClass{

    protected $dep;

    public function __construct(Dep $dep){
        $this->dep = $dep;
    }

    public function someMethod(){
        return $this->dep->go();
    }
}

// file SomeClassTest.php   

use tad\FunctionMocker\FunctionMocker;

class SomeClassTest extends PHPUnit_Framework_TestCase {

    /**
     * @test
     */
    public function it_will_call_go(){
        $dep = FunctionMocker::replace('Dep::go', 23);

        $sut = new SomeClass($dep);

        $this->assertEquals(23, $sut->someMethod());
    }
}

The FunctionMocker::replace method will set up the PHPUnit mock object using the any method, the call above is equivalent to, (*26)

$dep->expects($this->any())->method('go')->willReturn(23);

An alternative to this instance method replacement exists if the need arises to replace more than one instance method in a test:, (*27)

use tad\FunctionMocker\FunctionMocker;

class SomeClassTest extends \PHPUnit_Framework_TestCase {

    public function dependencyTest(){

        $func = function($one, $two){
                return $one + $two;
            };

        $mock = FunctionMocker::replace('Dependency')
            ->method('methodOne') // replace with null returning methods
            ->method('methodTwo', 23) // replace the method and return a value
            ->method('methodThree', $func)
            ->get();

        $this->assertNull($mock->methodOne());
        $this->assertEquals(23, $mock->methodTwo());
        $this->assertEquals(4, $mock->methodThree(1,3));

    }
}

Not specifying any method to replace will return a mock object wher just the __construct method has been replaced., (*28)

Mocking chaining methods

Since version 0.2.13 it's possible mocking instance methods meant to be chained. Given the following dependency class, (*29)

class Query {

    ...

    public funtion where($column, $condition, $constraint){
        ...

        return $this;
    }

    public function getResults(){
        return $this->results;
    }

    ...

}

and a possible client class, (*30)

class QueryUser{

    ...

   public function getOne($id){
    $this->query
        ->where('ID', '=', $id)
        ->where('type', '=', $this->type)
        ->getFirst();
   }

   ...

}

mocking the self-returning where method is possible in a test case using the -> as return value, (*31)

public function test_will_call_where_with_proper_args(){
    // tell FunctionMocker to return the mock object itself when
    // the `where` method is called
    FunctionMocker::replace('Query::where', '->');
    $query = FunctionMocker::replace('Query::getFirst', $mockResult);
    $sut = new QueryUser();
    $sut->setQuery($query);

    // execute
    $sut->getOne(23);

    // verify
    ...
}

Mocking abstract classes, interfaces and traits

Relying on PHPUnit instance mocking engine FunctionMocker retains its ability to mock interfaces, abstract classes and traits; the syntax to do so is the same used to mock instance methods, (*32)

interface SalutingInterface {
    public function sayHi();
}

the interface above can be replaced in a test like this, (*33)

public function test_say_hi(){
    $mock = FunctionMocker::replace('SalutingInterface::sayHi', 'Hello World!');

    // passes
    $this->assertEquals('Hello World!', $mock->sayHi());
}

See PHPUnit docs for a more detailed approach., (*34)

Spying instance methods

The object returned by the FunctionMocker::replace method called on an instance method will allow for the methods specified in the "Methods" section to be used to check for calls made to the replaced method:, (*35)

// file SomeClass.php

class SomeClass{

    public function methodOne(){
        ...
    }

    public function methodTwo(){
        ...
    }
}

// file SomeClassTest.php   

use tad\FunctionMocker\FunctionMocker;

class SomeClassTest extends PHPUnit_Framework_TestCase {

    /**
     * @test
     */
    public function returns_the_same_replacement_object(){
        // replace both class instance methods to return 23
        $replacement = FunctionMocker::replace('SomeClass::methodOne', 23);
        // $replacement === $replacement2
        $replacement2 = FunctionMocker::replace('SomeClass::methodTwo', 23);

        $replacement->methodOne();
        $replacement->methodTwo();

        $replacement->wasCalledOnce('methodOne');
        $replacement->wasCalledOnce('methodTwo');
    }
}

An alternative and more fluid API allows rewriting the assertions above in a way that's more similar to the one used by prophecy:, (*36)

// file SomeClassTest.php   

use tad\FunctionMocker\FunctionMocker;

class SomeClassTest extends PHPUnit_Framework_TestCase {

    /**
     * @test
     */
    public function returns_the_same_replacement_object(){
        // replace both class instance methods to return 23
        $mock = FunctionMocker::replace('SomeClass)
            ->methodOne()
            ->methodTwo();
        $replacement = $mock->get(); // think of $mock->reveal()

        $replacement->methodOne();
        $replacement->methodTwo();

        $mock->verify()->methodOne()->wasCalledOnce();
        $mock->verify()->methodTwo()->wasCalledOnce();
    }
}

Batch replacing instance methods

It's possible to batch replace instances using the same syntax used for batch function and static method replacement.
Given the SomeClass above:, (*37)

public function testBatchInstanceMethodReplacement(){
    $methods = ['SomeClass::methodOne', 'SomeClass::methodTwo'];
    // replace both class instance methods to return 23
    $replacements = FunctionMocker::replace($methods, 23);

    $replacement[0]->methodOne();
    $replacement[1]->methodTwo();

    $replacement[0]->wasCalledOnce('methodOne');
    $replacement[1]->wasCalledOnce('methodTwo');
}

Methods

Beside the methods defined as part of a PHPUnit mock object interface (see here), available only when replacing instance methods, the function mocker will extend the replaced functions and methods with the following methods:, (*38)

  • wasCalledTimes(int $times [, string $methodName]) - will assert a PHPUnit assertion if the function or static method was called $times times; the $times parameter can come using the times syntax below.
  • wasCalledOnce([string $methodName]) - will assert a PHPUnit assertion if the function or static method was called once.
  • wasNotCalled([string $methodName]) - will assert a PHPUnit assertion if the function or static method was not called.
  • wasCalledWithTimes(array $args, int $times[, string $methodName]) - will assert a PHPUnit assertion if the function or static method was called with $args arguments $times times; the $times parameter can come using the times syntax below; the $args parameter can be any combination of primitive values and PHPUnit constraints like [23, Test::isInstanceOf('SomeClass')].
  • wasCalledWithOnce(array $args[, string $methodName]) - will assert a PHPUnit assertion if the function or static method was called with $args arguments once; the $args parameter can be any combination of primitive values and PHPUnit constraints like [23, Test::isInstanceOf('SomeClass')].
  • wasNotCalledWith(array $args[, string $methodName]) - will assert a PHPUnit assertion if the function or static method was not called with $args arguments; the $args parameter can be any combination of primitive values and PHPUnit constraints like [23, Test::isInstanceOf('SomeClass')].

The method name is needed to verify calls on replaced instance methods!, (*39)

Times

When specifying the number of times a function or method should have been called a flexible syntax is available; in its most basic form can be expressed in numbers, (*40)

// the function should have have been called exactly 2 times
$function->wasCalledTimes(2);

but the usage of strings makes the check less cumbersome using the comparator syntax used in PHP, (*41)

// the function should have been called at least 2 times
$function->wasCalledTimes('>=2');

available comparators are >n, <n, >=n, <=n, ==n (same as inserting a number), !n., (*42)

Sugar methods

Function Mocker packs some sugar methods to make my testing life easier. The result of any of these methods can be achieved using alternative code but I've implemented those to speed things up a bit., (*43)

Test methods

Function Mocker wraps a PHPUnit_Framework_TestCase to allow the calling of test methods normally called on $this to be statically called on the FunctionMocker class or any of its aliases. A test method can be writte like this, (*44)

use tad\FunctionMocker\FunctionMocker as Test;

class SomeTest extends \PHPUnit_Framework_TestCase {

    public function test_true() {
        $this->assertTrue(true);
    }

    public function test_wrapped_true_work_the_same() {
        Test::assertTrue(true);
    }

}

Being a mere wrapping the test case to be used can be set using the setTestCase static method in the test case setUp method, (*45)

public function setUp() {
    FunctionMocker::setTestCase($this);
}

and any method specific to the test case will be available as a static method of the tad\FunctionMocker\FunctionMocker class.
Beside methods defined by the wrapped test case any method defined by the PHPUnit_Framework_TestCase class is available for autocompletion to comment reading IDEs like PhpStorm or Sublime Text., (*46)

Replacing a global

Allows replacing a global with a mock object and restore it after the test. Best used to replace/set globally shared instances of objects to mock; e.g.:, (*47)

FunctionMocker::replaceGlobal('wpdb', 'wpdb::get_row', $rowData);

// this will access $wpdb->get_row()
$post = get_latest_post();

// verify
$this->assertEquals(...);

is the same as writing, (*48)

// prepare
$mockWpdb = FunctionMocker::replace('wpdb::get_row', $rowData);
$prevWpdb = isset($GLOBALS['wpdb']) ? $GLOBALS['wpdb'] : null;
$GLOBALS['wpdb'] = $mockWpdb;

// this will access $wpdb->get_row()
$post = get_latest_post();

// verify
$this->assertEquals(...);

// restore state
$GLOBALS['wpdb'] = $prevWpdb;

Setting a global

Allows replacing/setting a global value and restore it's state after the test., (*49)

FunctionMocker::setGlobal('switchingToTheme', 'foo');
$do_action = FunctionMocker::replace('do_action');

// exercitate
call_switch_theme_actions();

$do_action->wasCalledWithOnce(['before_switch_to_theme_foo', ])

same as writing, (*50)

$prev = isset($GLOBALS['switchingToTheme']) ? $GLOBALS['switchingToTheme'] : null;
$GLOBALS['switchingToTheme'] = 'foo';
$do_action = FunctionMocker::replace('do_action');

// exercitate
call_switch_theme_actions();

// verify 
$do_action->wasCalledWithOnce(['before_switch_to_theme_foo', ])

// restore state
$GLOBALS['switchingToTheme'] = $prev;

The Versions

27/07 2018

dev-version-2

dev-version-2

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

28/05 2018

dev-wp-browser-example

dev-wp-browser-example

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

25/05 2018

dev-example-core-suite

dev-example-core-suite

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

22/04 2018

dev-master

9999999-dev

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

18/04 2018

1.3.8

1.3.8.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

18/04 2018

dev-fix-cache-path-issue

dev-fix-cache-path-issue

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

12/09 2017

1.3.7

1.3.7.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

12/09 2017

dev-fix-config-issue

dev-fix-config-issue

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

04/09 2017

1.3.6

1.3.6.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

21/08 2017

1.3.5

1.3.5.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

28/07 2017

1.3.4

1.3.4.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

28/07 2017

1.3.3

1.3.3.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

09/06 2017

1.3.2

1.3.2.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

09/06 2017

dev-phpunit-requirement

dev-phpunit-requirement

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

02/06 2017

1.3.1

1.3.1.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

21/04 2017

1.3.0

1.3.0.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

21/04 2017

dev-feature/phpunit-6-support

dev-feature/phpunit-6-support

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

19/04 2017

dev-closure-args

dev-closure-args

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

19/04 2017

1.2.2

1.2.2.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

19/04 2017

1.2.1

1.2.1.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

19/04 2017

1.2.0

1.2.0.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

18/04 2017

dev-cache

dev-cache

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

12/12 2016

dev-patchwork-20

dev-patchwork-20

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

12/12 2016

1.20

1.20.0.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

03/06 2016

1.1.0

1.1.0.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

17/03 2016

1.0.5

1.0.5.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

16/03 2016

1.0.4

1.0.4.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

19/01 2016

1.0.3

1.0.3.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

20/11 2015

1.0.2

1.0.2.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

07/07 2015

1.0.1

1.0.1.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

01/07 2015

1.0.0

1.0.0.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

11/05 2015

0.4.5

0.4.5.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

26/04 2015

0.4.4

0.4.4.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

09/04 2015

0.4.3

0.4.3.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

09/04 2015

0.4.2

0.4.2.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

03/04 2015

0.4.1

0.4.1.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

02/04 2015

dev-develop

dev-develop

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

02/04 2015

0.4.0

0.4.0.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

28/03 2015

0.3.0

0.3.0.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

25/03 2015

0.2.17

0.2.17.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

20/01 2015

0.2.16

0.2.16.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

20/01 2015

0.2.15

0.2.15.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

17/01 2015

0.2.14

0.2.14.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

14/01 2015

0.2.13

0.2.13.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

24/12 2014

0.2.12

0.2.12.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

23/12 2014

0.2.11

0.2.11.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

23/12 2014

0.2.10

0.2.10.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

15/12 2014

0.2.9

0.2.9.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

14/12 2014

0.2.8

0.2.8.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

09/12 2014

0.2.7

0.2.7.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

05/12 2014

0.2.6

0.2.6.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

02/12 2014

0.2.5

0.2.5.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

02/12 2014

0.2.4

0.2.4.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

01/12 2014

0.2.3

0.2.3.0

Function mocking with Patchwork

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Avatar theAverageDev

28/11 2014

0.2.2

0.2.2.0

Function mocking with Patchwork

  Sources   Download

GPL2

The Requires

 

The Development Requires

by Avatar theAverageDev

27/11 2014

0.2.1

0.2.1.0

Function mocking with Patchwork

  Sources   Download

GPL2

The Requires

 

The Development Requires

by Avatar theAverageDev

27/11 2014

0.2.0

0.2.0.0

Function mocking with Patchwork

  Sources   Download

GPL2

The Requires

 

The Development Requires

by Avatar theAverageDev

04/11 2014

0.1.1

0.1.1.0

Function mocking with Patchwork

  Sources   Download

GPL2

The Requires

 

The Development Requires

by Avatar theAverageDev

31/10 2014

0.1.0

0.1.0.0

Function mocking with Patchwork

  Sources   Download

GPL2

The Requires

 

The Development Requires

by Avatar theAverageDev