protected function getEngineMock($path)
{
$this->mockGenerator->shuntParentClassCalls();
$php = new \mock\Pickle\Engine\PHP();
$this->calling($php)->__construct = function ($dummy) {
};
$this->calling($php)->getIniPath = function () use($path) {
return $path;
};
$this->mockGenerator->unshuntParentClassCalls();
return $php;
}