Doublit.A simple tool to test your class dependencies in PhpUnit.

/* Get a dummy instance double of class "MyClass" */
$double = Doublit::dummy(MyClass::class)->getInstance();

/* Test the "hello" method */
$double::_method('hello')
    ->count('>1') // Test that it is called more than one time
    ->args(['value1', 'value2']) // Test that first and second arguments receive respectively "value1" and "value2"
    ->stub('my_return'); // Make it return "my_return"