Exemplo n.º 1
0
 /**
  * @testdox      Allows checking for the mode via convinient isMODE methods
  * @dataProvider provideIsMethodsTestData
  *
  * @param string $mode
  * @param bool   $isEnabled  expected value for isEnabled()
  * @param bool   $isDisabled expected value for isDisabled()
  * @param bool   $isIntern   expected value for isIntern()
  * @param bool   $isUri      expected value for isUri()
  * @param bool   $isEmail    expected value for isEmail()
  */
 public function testIsMethods($mode, $isEnabled, $isDisabled, $isIntern, $isUri, $isEmail)
 {
     $this->target->setMode($mode);
     $this->assertEquals($isEnabled, $this->target->isEnabled(), 'isEnabled() returns wrong value.');
     $this->assertEquals($isDisabled, $this->target->isDisabled(), 'isDisabled() returns wrong value.');
     $this->assertEquals($isIntern, $this->target->isIntern(), 'isIntern() returns wrong value.');
     $this->assertEquals($isUri, $this->target->isUri(), 'isUri() returns wrong value.');
     $this->assertEquals($isEmail, $this->target->isEmail(), 'isEmail() returns wrong value.');
 }