Browse Source

Remove old Symfony exception message expectation

Julien Falque 8 years ago
parent
commit
5002ecd00c

+ 3 - 3
tests/Fixer/Alias/NoMixedEchoPrintFixerTest.php

@@ -312,15 +312,15 @@ final class NoMixedEchoPrintFixerTest extends AbstractFixerTestCase
         return [
             [
                 ['a' => 'b'],
-                '#^\[no_mixed_echo_print\] Invalid configuration: The option "a" does not exist\. (Known|Defined) options are: "use"\.$#',
+                '#^\[no_mixed_echo_print\] Invalid configuration: The option "a" does not exist\. Defined options are: "use"\.$#',
             ],
             [
                 ['a' => 'b', 'b' => 'c'],
-                '#^\[no_mixed_echo_print\] Invalid configuration: The options "a", "b" do not exist\. (Known|Defined) options are: "use"\.$#',
+                '#^\[no_mixed_echo_print\] Invalid configuration: The options "a", "b" do not exist\. Defined options are: "use"\.$#',
             ],
             [
                 [1],
-                '#^\[no_mixed_echo_print\] Invalid configuration: The option "0" does not exist\. (Known|Defined) options are: "use"\.$#',
+                '#^\[no_mixed_echo_print\] Invalid configuration: The option "0" does not exist\. Defined options are: "use"\.$#',
             ],
             [
                 ['use' => '_invalid_'],

+ 1 - 1
tests/Fixer/ArrayNotation/ArraySyntaxFixerTest.php

@@ -29,7 +29,7 @@ final class ArraySyntaxFixerTest extends AbstractFixerTestCase
     {
         $this->setExpectedExceptionRegExp(
             \PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException::class,
-            '#^\[array_syntax\] Invalid configuration: The option "a" does not exist\. (Known|Defined) options are: "syntax"\.$#'
+            '#^\[array_syntax\] Invalid configuration: The option "a" does not exist\. Defined options are: "syntax"\.$#'
         );
 
         $this->fixer->configure(['a' => 1]);

+ 1 - 1
tests/Fixer/ClassNotation/ClassDefinitionFixerTest.php

@@ -135,7 +135,7 @@ final class ClassDefinitionFixerTest extends AbstractFixerTestCase
     {
         $this->setExpectedExceptionRegExp(
             \PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException::class,
-            '/^\[class_definition\] Invalid configuration: The option "a" does not exist\. (Known|Defined) options are: "multiLineExtendsEachSingleLine", "singleItemSingleLine", "singleLine"\.$/'
+            '/^\[class_definition\] Invalid configuration: The option "a" does not exist\. Defined options are: "multiLineExtendsEachSingleLine", "singleItemSingleLine", "singleLine"\.$/'
         );
 
         $fixer = new ClassDefinitionFixer();

+ 1 - 1
tests/Fixer/FunctionNotation/ReturnTypeDeclarationFixerTest.php

@@ -28,7 +28,7 @@ final class ReturnTypeDeclarationFixerTest extends AbstractFixerTestCase
     {
         $this->setExpectedExceptionRegExp(
             \PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException::class,
-            '#^\[return_type_declaration\] Invalid configuration: The option "s" does not exist. (Known|Defined) options are: "space_before".$#'
+            '#^\[return_type_declaration\] Invalid configuration: The option "s" does not exist. Defined options are: "space_before".$#'
         );
 
         $this->fixer->configure(['s' => 9000]);

+ 1 - 1
tests/Fixer/LanguageConstruct/FunctionToConstantFixerTest.php

@@ -157,7 +157,7 @@ $a =
     {
         $this->setExpectedExceptionRegExp(
             \PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException::class,
-            '#^\[function_to_constant\] Invalid configuration: The option "0" does not exist\. (Defined|Known) options are: "functions"\.$#'
+            '#^\[function_to_constant\] Invalid configuration: The option "0" does not exist\. Defined options are: "functions"\.$#'
         );
 
         $this->fixer->configure(['pi123']);

+ 1 - 1
tests/Fixer/Operator/BinaryOperatorSpacesFixerTest.php

@@ -366,7 +366,7 @@ $b;',
     {
         $this->setExpectedExceptionRegExp(
             \PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException::class,
-            '/^\[binary_operator_spaces\] Invalid configuration: The option "foo" does not exist\. (Known|Defined) options are: "align_double_arrow", "align_equals"\.$/'
+            '/^\[binary_operator_spaces\] Invalid configuration: The option "foo" does not exist\. Defined options are: "align_double_arrow", "align_equals"\.$/'
         );
 
         $this->fixer->configure(['foo' => true]);

+ 1 - 1
tests/Fixer/Operator/ConcatSpaceFixerTest.php

@@ -28,7 +28,7 @@ final class ConcatSpaceFixerTest extends AbstractFixerTestCase
     {
         $this->setExpectedExceptionRegExp(
             \PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException::class,
-            '#^\[concat_space\] Invalid configuration: The option "a" does not exist\. (Known|Defined) options are: "spacing"\.$#'
+            '#^\[concat_space\] Invalid configuration: The option "a" does not exist\. Defined options are: "spacing"\.$#'
         );
 
         $this->fixer->configure(['a' => 1]);