Ignores parameter ids.
저자: Elliot Levin (elliotlevin@hotmail.com)
상속: extends SebastianBergmann\Comparator\Comparator
예제 #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;
 }
예제 #2
0
 protected function assertEqualsButIgnoreParameterIds($expected, $actual)
 {
     QueryComparator::assertEqualsButIgnoreParameterIds($expected, $actual);
 }
예제 #3
0
 public function parameter()
 {
     return QueryComparator::parameter();
 }