| 1 | <?php |
||
| 21 | class LegacyFormHelperTest extends \PHPUnit_Framework_TestCase |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @dataProvider dataProviderForIsLegacyTest |
||
| 25 | */ |
||
| 26 | public function testIsLegacy($majorVersion, $expectedLegacyStatus) |
||
| 30 | |||
| 31 | public function dataProviderForIsLegacyTest() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @dataProvider dataProviderForGetTypeTest |
||
| 42 | */ |
||
| 43 | public function testGetType($majorVersion, $expectedFormType) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | public function dataProviderForGetTypeTest() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @expectedException \InvalidArgumentException |
||
| 64 | * @expectedExceptionMessage Form type with class "Symfony\Component\Form\Extension\Core\Type\TextType" can not be found. Please check for typos or add it to the map in LegacyFormHelper |
||
| 65 | */ |
||
| 66 | public function testExceptionForGetUnsupportedType() |
||
| 70 | } |
||
| 71 |