for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Moka\Strategy;
use Moka\Exception\InvalidArgumentException;
use Moka\Exception\MockNotCreatedException;
use Moka\Exception\NotImplementedException;
/**
* Interface MockingStrategyInterface
* @package Moka\Strategy
*/
interface MockingStrategyInterface
{
* @param string $fqcn
* @return object
*
* @throws MockNotCreatedException
public function build(string $fqcn);
* @param object $mock
* @param array $stubs
* @return void
public function decorate($mock, array $stubs);
* @throws InvalidArgumentException
public function get($mock);
* @param string $methodName
* @return mixed
public function call($mock, string $methodName);
* @return string
* @throws NotImplementedException
public function getMockType(): string;
}