Example #1
0
 /**
  * @dataProvider providerForNotEquals
  * @expectedException Respect\Validation\Exceptions\EqualsException
  */
 public function testStringsNotEqualsExpectedValueShouldNotPass($start, $input, $identical = false)
 {
     $v = new Equals($start, $identical);
     $this->assertFalse($v->__invoke($input));
     $this->assertFalse($v->assert($input));
 }
 public function isGeneralizationOfEquals(Equals $eq)
 {
     return $eq->isSpecialCaseOf($this);
 }
Example #3
0
 public function __construct($compareTo, $compareIdentical = true, $config = [])
 {
     parent::__construct($compareTo, true, $config);
 }
Example #4
0
 /**
  * @dataProvider providerForNotEquals
  * @expectedException Respect\Validation\Exceptions\EqualsException
  */
 public function test_strings_NOT_equals_expected_value_shoud_NOT_pass($start, $input, $identical = false)
 {
     $v = new Equals($start, $identical);
     $this->assertFalse($v->validate($input));
     $this->assertFalse($v->assert($input));
 }