Doublit.Double and test your PHP classes easily in PhpUnit.

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

/* 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"