Exemple #1
0
 public function withValue($expected_text)
 {
     Expectations::shouldNotBeNull($this->__getLastVisitedLocation(), "No element was specified. Did you forget the call to shouldSee ?");
     Expectations::shouldContain($expected_text, $this->__getSelenium()->getValue($this->__getLastVisitedLocation()));
     $this->__resetLastVisitedLocation();
 }
 /**
  * @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());
     }
 }