瀏覽代碼

[Form] Removed StripTagsListenerTest

Bernhard Schussek 14 年之前
父節點
當前提交
f078554c2a
共有 1 個文件被更改,包括 0 次插入30 次删除
  1. 0 30
      tests/Symfony/Tests/Component/Form/EventListener/StripTagsListenerTest.php

+ 0 - 30
tests/Symfony/Tests/Component/Form/EventListener/StripTagsListenerTest.php

@@ -1,30 +0,0 @@
-<?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\EventListener;
-
-use Symfony\Component\Form\Event\FilterDataEvent;
-use Symfony\Component\Form\EventListener\StripTagsListener;
-
-class StripTagsListenerTest extends \PHPUnit_Framework_TestCase
-{
-    public function testStripTags()
-    {
-        $data = "<div><strong>Foo!</strong>Bar!<span>Baz!</span></table></body>";
-        $form = $this->getMock('Symfony\Tests\Component\Form\FormInterface');
-        $event = new FilterDataEvent($form, $data);
-
-        $filter = new StripTagsListener();
-        $filter->onBindClientData($event);
-
-        $this->assertEquals('Foo!Bar!Baz!', $event->getData());
-    }
-}