/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
- <?php
- /*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Symfony\Tests\Component\Form\Extension\Core\Type;
- require_once __DIR__ . '/LocalizedTestCase.php';
- class MoneyTypeTest extends LocalizedTestCase
- {
- public function testPassMoneyPatternToView()
- {
- \Locale::setDefault('de_DE');
- $form = $this->factory->create('money');
- $view = $form->createView();
- $this->assertSame('{{ widget }} â‚?', $view->get('money_pattern'));
- }
- }