@@ -102,6 +102,9 @@ discard block |
||
| 102 | 102 | $this->assertEquals(['Male' => 'male', 'Female' => 'female'], $form->get(self::TEST_PROPERTY)->getConfig()->getOption('choices')); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | + /** |
|
| 106 | + * @return string |
|
| 107 | + */ |
|
| 105 | 108 | protected function getFormType() |
| 106 | 109 | { |
| 107 | 110 | if (method_exists(AbstractType::class, 'getBlockPrefix')) { |
@@ -113,6 +116,9 @@ discard block |
||
| 113 | 116 | return $name; |
| 114 | 117 | } |
| 115 | 118 | |
| 119 | + /** |
|
| 120 | + * @return string |
|
| 121 | + */ |
|
| 116 | 122 | protected function getEnumType() |
| 117 | 123 | { |
| 118 | 124 | if (method_exists(AbstractType::class, 'getBlockPrefix')) { |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | use Symfony\Component\Form\Test\TypeTestCase; |
| 11 | 11 | use Symfony\Component\Validator\Mapping\ClassMetadata; |
| 12 | 12 | use Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface; |
| 13 | -use Yokai\Enum\Bridge\Symfony\Form\Type\EnumType; |
|
| 14 | 13 | use Yokai\Enum\Bridge\Symfony\Form\Extension\EnumTypeGuesser; |
| 14 | +use Yokai\Enum\Bridge\Symfony\Form\Type\EnumType; |
|
| 15 | 15 | use Yokai\Enum\Bridge\Symfony\Validator\Constraints\Enum; |
| 16 | 16 | use Yokai\Enum\EnumRegistry; |
| 17 | 17 | use Yokai\Enum\Tests\Bridge\Symfony\Form\TestExtension; |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Doctrine\Common\Annotations\AnnotationRegistry; |
| 4 | 4 | |
| 5 | -call_user_func(function() { |
|
| 6 | - if ( ! is_file($autoloadFile = __DIR__.'/../vendor/autoload.php')) { |
|
| 5 | +call_user_func(function () { |
|
| 6 | + if (!is_file($autoloadFile = __DIR__ . '/../vendor/autoload.php')) { |
|
| 7 | 7 | throw new \RuntimeException('Did not find vendor/autoload.php. Did you run "composer install --dev"?'); |
| 8 | 8 | } |
| 9 | 9 | require_once $autoloadFile; |