classNotFound() 공개 메소드

public classNotFound ( string $classname ) : PhpSpec\Exception\Fracture\ClassNotFoundException
$classname string
리턴 PhpSpec\Exception\Fracture\ClassNotFoundException
예제 #1
0
 function it_delegates_throwing_class_not_found_exception(WrappedObject $wrappedObject, ExceptionFactory $exceptions)
 {
     $wrappedObject->isInstantiated()->willReturn(false);
     $wrappedObject->getClassName()->willReturn('Foo');
     $exceptions->classNotFound('Foo')->willReturn(new \PhpSpec\Exception\Fracture\ClassNotFoundException('Class "Foo" does not exist.', '"Foo"'))->shouldBeCalled();
     $this->shouldThrow('\\PhpSpec\\Exception\\Fracture\\ClassNotFoundException')->duringGetWrappedObject();
 }
예제 #2
0
 /**
  * @return \PhpSpec\Exception\Fracture\ClassNotFoundException
  */
 private function classNotFound()
 {
     return $this->exceptionFactory->classNotFound($this->wrappedObject->getClassName());
 }