Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / validator / Tests / Constraints / IdenticalToValidatorTest.php
index 9ce3f32fc5c75ed447d5eefd6195818e727c94f8..360eccabc70250d23aee61e677093ea0b6d4048b 100644 (file)
@@ -13,24 +13,18 @@ namespace Symfony\Component\Validator\Tests\Constraints;
 
 use Symfony\Component\Validator\Constraints\IdenticalTo;
 use Symfony\Component\Validator\Constraints\IdenticalToValidator;
-use Symfony\Component\Validator\Validation;
 
 /**
  * @author Daniel Holmes <daniel@danielholmes.org>
  */
 class IdenticalToValidatorTest extends AbstractComparisonValidatorTestCase
 {
-    protected function getApiVersion()
-    {
-        return Validation::API_VERSION_2_5;
-    }
-
     protected function createValidator()
     {
         return new IdenticalToValidator();
     }
 
-    protected function createConstraint(array $options)
+    protected function createConstraint(array $options = null)
     {
         return new IdenticalTo($options);
     }
@@ -69,14 +63,22 @@ class IdenticalToValidatorTest extends AbstractComparisonValidatorTestCase
             array(null, 1),
         );
 
-        if (PHP_VERSION_ID >= 50500) {
-            $immutableDate = new \DateTimeImmutable('2000-01-01');
-            $comparisons[] = array($immutableDate, $immutableDate);
-        }
+        $immutableDate = new \DateTimeImmutable('2000-01-01');
+        $comparisons[] = array($immutableDate, $immutableDate);
 
         return $comparisons;
     }
 
+    /**
+     * {@inheritdoc}
+     */
+    public function provideValidComparisonsToPropertyPath()
+    {
+        return array(
+            array(5),
+        );
+    }
+
     /**
      * {@inheritdoc}
      */