Ejemplo n.º 1
0
 /**
  * @test
  */
 public function ShouldBeFalseShouldBehaveJustLikeassertFalse()
 {
     Expectations::shouldBeFalse(false);
     self::assertFalse(false);
     try {
         self::assertFalse(True);
         throw new Exception("assertFalse should fail with true");
     } catch (PHPUnit_Framework_ExpectationFailedException $e) {
     }
     try {
         Expectations::shouldBeFalse(true);
         throw new Exception("shouldBeFalse should fail with true");
     } catch (PHPUnit_Framework_ExpectationFailedException $e) {
     }
 }
Ejemplo n.º 2
0
 public function unchecked()
 {
     Expectations::shouldNotBeNull($this->__getLastVisitedLocation(), "No element was specified. Did you forget the call to shouldSee ?");
     Expectations::shouldBeFalse($this->__getSelenium()->isChecked($this->__getLastVisitedLocation()));
     $this->__resetLastVisitedLocation();
 }