This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/Form/Renderer/Plugin/MoneyPatternPluginTest.php
2011-03-22 22:19:51 +00:00

32 lines
942 B
PHP

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.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\Renderer\Plugin;
use Symfony\Component\Form\Renderer\Plugin\MoneyPatternPlugin;
class MoneyPatternPluginTest extends \PHPUnit_Framework_TestCase
{
public function testSetUpEur()
{
$field = $this->getMock('Symfony\Tests\Component\Form\FormInterface');
$renderer = $this->getMock('Symfony\Component\Form\Renderer\FormRendererInterface');
$renderer->expects($this->once())
->method('setVar')
->with($this->equalTo('money_pattern'), $this->equalTo('€ {{ widget }}'));
$plugin = new MoneyPatternPlugin('EUR');
$plugin->setUp($field, $renderer);
}
}