Bladeren bron

added NEXT_MAJOR

Oskar Stark 8 jaren geleden
bovenliggende
commit
bea8d1ba44
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      Tests/Command/ExplainAdminCommandTest.php

+ 2 - 0
Tests/Command/ExplainAdminCommandTest.php

@@ -186,6 +186,7 @@ class ExplainAdminCommandTest extends \PHPUnit_Framework_TestCase
 
 
     public function testExecute()
     public function testExecute()
     {
     {
+        // NEXT_MAJOR: Remove check, when bumping requirements to SF 2.5+
         if (interface_exists('Symfony\Component\Validator\Mapping\MetadataInterface')) { //sf2.5+
         if (interface_exists('Symfony\Component\Validator\Mapping\MetadataInterface')) { //sf2.5+
             $metadata = $this->getMock('Symfony\Component\Validator\Mapping\MetadataInterface');
             $metadata = $this->getMock('Symfony\Component\Validator\Mapping\MetadataInterface');
         } else {
         } else {
@@ -197,6 +198,7 @@ class ExplainAdminCommandTest extends \PHPUnit_Framework_TestCase
             ->with($this->equalTo('Acme\Entity\Foo'))
             ->with($this->equalTo('Acme\Entity\Foo'))
             ->will($this->returnValue($metadata));
             ->will($this->returnValue($metadata));
 
 
+        // NEXT_MAJOR: Remove check, when bumping requirements to SF 2.5+
         if (class_exists('Symfony\Component\Validator\Mapping\GenericMetadata')) {
         if (class_exists('Symfony\Component\Validator\Mapping\GenericMetadata')) {
             $class = 'GenericMetadata';
             $class = 'GenericMetadata';
         } else {
         } else {