Esempio n. 1
0
 /**
  * @test
  */
 public function ShouldBeNullShouldBehaveLikeAssertNull()
 {
     Expectations::shouldBeNull(null);
     self::assertNull(null);
     try {
         self::assertNull("Something that isn't null");
         throw new Exception("assertNull should fail if something not null");
     } catch (PHPUnit_Framework_ExpectationFailedException $e) {
     }
     try {
         Expectations::shouldBeNull("Something that isn't null");
         throw new Exception("shouldBeNull should fail if something not null");
     } catch (PHPUnit_Framework_ExpectationFailedException $e) {
     }
 }