예제 #1
0
파일: FnTest.php 프로젝트: aerisweather/Fn
 /**
  * @test
  * @expectedException \InvalidArgumentException
  */
 public function method_times_shouldHandleNegativeArg()
 {
     Fn\times(-1, $spy = new Spy());
     $spy->shouldNotHaveBeenCalled();
 }
예제 #2
0
 /**
  * @test
  * @expectedException \Mockery\Exception\InvalidCountException
  */
 public function shouldNotHaveBeenCalled_shouldFailIfSpyWasCalled()
 {
     $spy = new Spy();
     $spy();
     $spy->shouldNotHaveBeenCalled();
 }