Exemplo n.º 1
0
 /**
  * Tests Valid::matches()
  *
  * Tests if a field matches another from an array of data
  *
  * @test
  * @dataProvider provider_matches
  * @param array   $data      Array of fields
  * @param integer $field     First field name
  * @param integer $match     Field name that must match $field in $data
  * @param boolean $expected  Do the two fields match?
  */
 public function test_matches($data, $field, $match, $expected)
 {
     $this->AssertSame($expected, Valid::matches($data, $field, $match));
 }