* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form\Tests\Extension\Core\Type; class PasswordTypeTest extends BaseTypeTest { const TESTED_TYPE = 'Symfony\Component\Form\Extension\Core\Type\PasswordType'; public function testEmptyIfNotSubmitted() { $form = $this->factory->create(static::TESTED_TYPE); $form->setData('pAs5w0rd'); $this->assertSame('', $form->createView()->vars['value']); } public function testEmptyIfSubmitted() { $form = $this->factory->create(static::TESTED_TYPE); $form->submit('pAs5w0rd'); $this->assertSame('', $form->createView()->vars['value']); } public function testNotEmptyIfSubmittedAndNotAlwaysEmpty() { $form = $this->factory->create(static::TESTED_TYPE, null, array('always_empty' => false)); $form->submit('pAs5w0rd'); $this->assertSame('pAs5w0rd', $form->createView()->vars['value']); } public function testNotTrimmed() { $form = $this->factory->create(static::TESTED_TYPE, null); $form->submit(' pAs5w0rd '); $this->assertSame(' pAs5w0rd ', $form->getData()); } public function testSubmitNull($expected = null, $norm = null, $view = null) { parent::testSubmitNull($expected, $norm, ''); } } __halt_compiler();----SIGNATURE:----UsZst0rhqmMte4LCGZ/7D/dGPdQuuiBYMbqCeKBpeIzHNQomyIZ0ITc449qnXSBVl/0BOvJOslg8qAWltMfXHywfIAwjA6Ot9JkSjQr0Z7UaxOOkNGwmir4w3Y4hkjnNB3N4CASnK/C/u31FFbwEFXs99cOuUKapqSlkz/JriJVG3MNE0oxs+1GNdNJh5Eg7N046ubAk6W0CdxRpp4D2e1hKJBtwmBEVrVzLbsJAFIB5Ua9m+DffteHtAYpbSaLfT4XlJEwYZcYuSzTgRJFTGzRKuaSJS/h7CEc3m/kKOD25IEmpwiEfiedH+UxT8eVPDmk/xFIPDiyL9NzDZfypl1m1TgyXCFalv/ESDYTJtRRS4F4bh2cYlqCmRiAZkHbecaWMVRoNQpZtGXov5Uak6yNNvS55ebh2/J3KyJyUdsDqN5HJk3Mt9yN3DgK4yq0qyilmM0Pv7+SV/7O0IUc3xsq4WTg2U+G2nSN717rXSKebBI0Ad/SOP9qYtebEgrYDJPfFqQ3KaHUJVpQuZdphbrggOFGpIOuawYzxnQrw1qdRGJptjqHxFx9DUpPO5zsFLU4k8Etpolt+55I6RTIGEyKo4f7K3rJFNwjyFy9B/pEwt3N0gPZCSh/5OxDVKy/GG44QkIWg4YZ2kgR9YUD+3BJzbDprw/vwaZIDg8V8/G4=----ATTACHMENT:----NjEyODA2MTc0NzQ2OTUwNyA0MjM1MzI0MDY1NDMwNDY3IDQwMDUwNDM4OTgyNzE1Mzk=