Skip to content

Instantly share code, notes, and snippets.

@fesor
Created March 18, 2015 20:05
Show Gist options
  • Select an option

  • Save fesor/1a6203a35ad8f4cdfa41 to your computer and use it in GitHub Desktop.

Select an option

Save fesor/1a6203a35ad8f4cdfa41 to your computer and use it in GitHub Desktop.
Prophet generated class
<?php
namespace Double\Wings;
class P1 extends Wings implements ProphecyProphecyProphecySubjectInterface, ProphecyDoublerGeneratorReflectionInterface
{
private $objectProphecy;
public function swing()
{
return $this->getProphecy()->makeProphecyMethodCall(__FUNCTION__, func_get_args());
}
public function __construct()
{
}
public function __call($name, $arguments)
{
throw new ProphecyExceptionDoublerMethodNotFoundException(
sprintf('Method `%s::%s()` not found.', get_class($this) , func_get_arg(0)),
$this->getProphecy(),
func_get_arg(0)
);
}
public function setProphecy(ProphecyProphecyProphecyInterface $prophecy)
{
$this->objectProphecy = $prophecy;
}
public function getProphecy()
{
return $this->objectProphecy;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment