Move FormInterface too

This commit is contained in:
Tom Van Looy 2012-12-17 09:01:30 +01:00
parent 0544351463
commit cda162103f
10 changed files with 16 additions and 16 deletions

View File

@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Tests;
namespace Symfony\Component\Form\Test;
interface FormInterface extends \Iterator, \Symfony\Component\Form\FormInterface
{

View File

@ -76,7 +76,7 @@ abstract class AbstractFormTest extends \PHPUnit_Framework_TestCase
*/
protected function getMockForm($name = 'name')
{
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
$form->expects($this->any())
->method('getName')

View File

@ -41,7 +41,7 @@ class FixRadioInputListenerTest extends \PHPUnit_Framework_TestCase
public function testFixRadio()
{
$data = '1';
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
$event = DeprecationErrorHandler::getFormEvent($form, $data);
$this->listener->preBind($event);
@ -52,7 +52,7 @@ class FixRadioInputListenerTest extends \PHPUnit_Framework_TestCase
public function testFixZero()
{
$data = '0';
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
$event = DeprecationErrorHandler::getFormEvent($form, $data);
$this->listener->preBind($event);
@ -63,7 +63,7 @@ class FixRadioInputListenerTest extends \PHPUnit_Framework_TestCase
public function testIgnoreEmptyString()
{
$data = '';
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
$event = DeprecationErrorHandler::getFormEvent($form, $data);
$this->listener->preBind($event);

View File

@ -26,7 +26,7 @@ class FixUrlProtocolListenerTest extends \PHPUnit_Framework_TestCase
public function testFixHttpUrl()
{
$data = "www.symfony.com";
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
$event = DeprecationErrorHandler::getFormEvent($form, $data);
$filter = new FixUrlProtocolListener('http');
@ -38,7 +38,7 @@ class FixUrlProtocolListenerTest extends \PHPUnit_Framework_TestCase
public function testSkipKnownUrl()
{
$data = "http://www.symfony.com";
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
$event = DeprecationErrorHandler::getFormEvent($form, $data);
$filter = new FixUrlProtocolListener('http');
@ -50,7 +50,7 @@ class FixUrlProtocolListenerTest extends \PHPUnit_Framework_TestCase
public function testSkipOtherProtocol()
{
$data = "ftp://www.symfony.com";
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
$event = DeprecationErrorHandler::getFormEvent($form, $data);
$filter = new FixUrlProtocolListener('http');

View File

@ -49,7 +49,7 @@ abstract class MergeCollectionListenerTest extends \PHPUnit_Framework_TestCase
protected function getMockForm()
{
return $this->getMock('Symfony\Component\Form\Tests\FormInterface');
return $this->getMock('Symfony\Component\Form\Test\FormInterface');
}
public function getBooleanMatrix1()

View File

@ -62,7 +62,7 @@ class ResizeFormListenerTest extends \PHPUnit_Framework_TestCase
protected function getMockForm()
{
return $this->getMock('Symfony\Component\Form\Tests\FormInterface');
return $this->getMock('Symfony\Component\Form\Test\FormInterface');
}
public function testPreSetDataResizesForm()

View File

@ -26,7 +26,7 @@ class TrimListenerTest extends \PHPUnit_Framework_TestCase
public function testTrim()
{
$data = " Foo! ";
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
$event = DeprecationErrorHandler::getFormEvent($form, $data);
$filter = new TrimListener();
@ -38,7 +38,7 @@ class TrimListenerTest extends \PHPUnit_Framework_TestCase
public function testTrimSkipNonStrings()
{
$data = 1234;
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
$event = DeprecationErrorHandler::getFormEvent($form, $data);
$filter = new TrimListener();
@ -59,7 +59,7 @@ class TrimListenerTest extends \PHPUnit_Framework_TestCase
$data = mb_convert_encoding(pack('H*', implode('', $chars)), 'UTF-8', 'UCS-2BE');
$data = $data."ab\ncd".$data;
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
$event = DeprecationErrorHandler::getFormEvent($form, $data);
$filter = new TrimListener();

View File

@ -60,7 +60,7 @@ class CsrfValidationListenerTest extends \PHPUnit_Framework_TestCase
protected function getMockForm()
{
return $this->getMock('Symfony\Component\Form\Tests\FormInterface');
return $this->getMock('Symfony\Component\Form\Test\FormInterface');
}
// https://github.com/symfony/symfony/pull/5838

View File

@ -94,7 +94,7 @@ class ValidationListenerTest extends \PHPUnit_Framework_TestCase
private function getMockForm()
{
return $this->getMock('Symfony\Component\Form\Tests\FormInterface');
return $this->getMock('Symfony\Component\Form\Test\FormInterface');
}
// More specific mapping tests can be found in ViolationMapperTest

View File

@ -686,7 +686,7 @@ class SimpleFormTest extends AbstractFormTest
{
$type = $this->getMock('Symfony\Component\Form\ResolvedFormTypeInterface');
$view = $this->getMock('Symfony\Component\Form\FormView');
$parentForm = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
$parentForm = $this->getMock('Symfony\Component\Form\Test\FormInterface');
$parentView = $this->getMock('Symfony\Component\Form\FormView');
$form = $this->getBuilder()->setType($type)->getForm();
$form->setParent($parentForm);