Exemplo n.º 1
0
 /**
  * @test
  */
 public function ShouldBeEmptyShouldFailWhenUsedOnZero()
 {
     try {
         Expectations::shouldBeEmpty(0);
         throw new Exception("shouldBeEmpty should fail when object is a zero");
     } catch (PHPUnit_Framework_Exception $e) {
         Expectations::shouldContain("shouldEqual", $e->getMessage());
     }
 }