/tests/Symfony/Tests/Component/Form/Extension/Core/Type/MoneyTypeTest.php

http://github.com/symfony/symfony · PHP · 27 lines · 13 code · 6 blank · 8 comment · 0 complexity · 07edd51cdb290e6356df323728961d56 MD5 · raw file

  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Tests\Component\Form\Extension\Core\Type;
  11. require_once __DIR__ . '/LocalizedTestCase.php';
  12. class MoneyTypeTest extends LocalizedTestCase
  13. {
  14. public function testPassMoneyPatternToView()
  15. {
  16. \Locale::setDefault('de_DE');
  17. $form = $this->factory->create('money');
  18. $view = $form->createView();
  19. $this->assertSame('{{ widget }} â&#x201A;?', $view->get('money_pattern'));
  20. }
  21. }