Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move FormInterface too

  • Loading branch information...
commit db0f0cae3811ed804f8861c5c1c3d7a6471df2de 1 parent 93152e5
Tom Van Looy tvlooy authored
2  Tests/FormInterface.php → Test/FormInterface.php
View
@@ -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
{
2  Tests/AbstractFormTest.php
View
@@ -76,7 +76,7 @@ protected function getBuilder($name = 'name', EventDispatcherInterface $dispatch
*/
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')
6 Tests/Extension/Core/EventListener/FixRadioInputListenerTest.php
View
@@ -41,7 +41,7 @@ protected function tearDown()
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 @@ public function testFixRadio()
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 @@ public function testFixZero()
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);
6 Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php
View
@@ -26,7 +26,7 @@ protected function setUp()
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 @@ public function testFixHttpUrl()
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 @@ public function testSkipKnownUrl()
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');
2  Tests/Extension/Core/EventListener/MergeCollectionListenerTest.php
View
@@ -49,7 +49,7 @@ protected function getForm($name = 'name', $propertyPath = null)
protected function getMockForm()
{
- return $this->getMock('Symfony\Component\Form\Tests\FormInterface');
+ return $this->getMock('Symfony\Component\Form\Test\FormInterface');
}
public function getBooleanMatrix1()
2  Tests/Extension/Core/EventListener/ResizeFormListenerTest.php
View
@@ -62,7 +62,7 @@ private function getDataMapper()
protected function getMockForm()
{
- return $this->getMock('Symfony\Component\Form\Tests\FormInterface');
+ return $this->getMock('Symfony\Component\Form\Test\FormInterface');
}
public function testPreSetDataResizesForm()
6 Tests/Extension/Core/EventListener/TrimListenerTest.php
View
@@ -26,7 +26,7 @@ protected function setUp()
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 @@ public function testTrim()
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 @@ public function testTrimUtf8($chars)
$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();
2  Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php
View
@@ -60,7 +60,7 @@ protected function getDataMapper()
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
2  Tests/Extension/Validator/EventListener/ValidationListenerTest.php
View
@@ -94,7 +94,7 @@ private function getForm($name = 'name', $propertyPath = null, $dataClass = null
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
2  Tests/SimpleFormTest.php
View
@@ -686,7 +686,7 @@ public function testCreateViewWithParent()
{
$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);
Please sign in to comment.
Something went wrong with that request. Please try again.