Kraken\_Unit\Runtime\_T\TSolver::createSolver PHP Метод

createSolver() публичный Метод

public createSolver ( mixed[] $context = [], string[] | null $methods = null ) : Kraken\Supervision\SolverInterface | PHPUnit_Framework_MockObject_MockObject
$context mixed[]
$methods string[] | null
Результат Kraken\Supervision\SolverInterface | PHPUnit_Framework_MockObject_MockObject
    public function createSolver($context = [], $methods = null)
    {
        if ($this->class === '') {
            throw new Exception('Class not set');
        }
        if (!array_key_exists('runtime', $context)) {
            $context['runtime'] = $this->createRuntime();
        }
        $this->solver = $this->getMock($this->class, $methods, [$context]);
        return $this->solver;
    }