Ignores parameter ids.
Author: Elliot Levin (elliotlevin@hotmail.com)
Inheritance: extends SebastianBergmann\Comparator\Comparator
Exemplo n.º 1
0
 public function accepts($expected, $actual)
 {
     if (is_string($expected) && is_string($actual) && QueryComparator::isParameter($expected) || $expected instanceof IParameterRegistry && $actual instanceof IParameterRegistry) {
         return true;
     } elseif (is_array($expected) && is_array($actual) && !empty($expected)) {
         foreach ($expected as $key => $value) {
             if (!self::isParameter($key)) {
                 return false;
             }
         }
         return true;
     }
     return false;
 }
Exemplo n.º 2
0
 protected function assertEqualsButIgnoreParameterIds($expected, $actual)
 {
     QueryComparator::assertEqualsButIgnoreParameterIds($expected, $actual);
 }
Exemplo n.º 3
0
 public function parameter()
 {
     return QueryComparator::parameter();
 }