callingMethodOnNonObject() public method

public callingMethodOnNonObject ( string $method ) : PhpSpec\Exception\Wrapper\SubjectException
$method string
return PhpSpec\Exception\Wrapper\SubjectException
コード例 #1
0
ファイル: VarienCaller.php プロジェクト: kbulloch/MageSpec_vm
 /**
  * @param string $method
  * @return \PhpSpec\Exception\Wrapper\SubjectException
  */
 private function callingMethodOnNonObject($method)
 {
     return $this->exceptionFactory->callingMethodOnNonObject($method);
 }
コード例 #2
0
 function it_delegates_throwing_calling_method_on_non_object_exception(ExceptionFactory $exceptions)
 {
     $exceptions->callingMethodOnNonObject('foo')->willReturn(new \PhpSpec\Exception\Wrapper\SubjectException('Call to a member function "foo()" on a non-object.'))->shouldBeCalled();
     $this->shouldThrow('\\PhpSpec\\Exception\\Wrapper\\SubjectException')->duringCall('foo');
 }