8000 Move FormInterface too · waibo/symfony@cda1621 · GitHub
[go: up one dir, main page]

Skip to content

Commit cda1621

Browse files
committed
Move FormInterface too
1 parent 0544351 commit cda1621

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

src/Symfony/Component/Form/Tests/FormInterface.php renamed to src/Symfony/Component/Form/Test/FormInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Component\Form\Tests;
12+
namespace Symfony\Component\Form\Test;
1313

1414
interface FormInterface extends \Iterator, \Symfony\Component\Form\FormInterface
1515
{

src/Symfony/Component/Form/Tests/AbstractFormTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function getBuilder($name = 'name', EventDispatcherInterface $dispatch
7676
*/
7777
protected function getMockForm($name = 'name')
7878
{
79-
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
79+
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
8080

8181
$form->expects($this->any())
8282
->method('getName')

src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixRadioInputListenerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function tearDown()
4141
public function testFixRadio()
4242
{
4343
$data = '1';
44-
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
44+
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
4545
$event = DeprecationErrorHandler::getFormEvent($form, $data);
4646

4747
$this->listener->preBind($event);
@@ -52,7 +52,7 @@ public function testFixRadio()
5252
public function testFixZero()
5353
{
5454
$data = '0';
55-
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
55+
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
5656
$event = DeprecationErrorHandler::getFormEvent($form, $data);
5757

5858
$this->listener->preBind($event);
@@ -63,7 +63,7 @@ public function testFixZero()
6363
public function testIgnoreEmptyString()
6464
{
6565
$data = '';
66-
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
66+
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
6767
$event = DeprecationErrorHandler::getFormEvent($form, $data);
6868

6969
$this->listener->preBind($event);

src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function setUp()
2626
public function testFixHttpUrl()
2727
{
2828
$data = "www.symfony.com";
29-
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
29+
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
3030
$event = DeprecationErrorHandler::getFormEvent($form, $data);
3131

3232
$filter = new FixUrlProtocolListener('http');
@@ -38,7 +38,7 @@ public function testFixHttpUrl()
3838
public function testSkipKnownUrl()
3939
{
4040
$data = "http://www.symfony.com";
41-
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
41+
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
4242
$event = DeprecationErrorHandler::getFormEvent($form, $data);
4343

4444
$filter = new FixUrlProtocolListener('http');
@@ -50,7 +50,7 @@ public function testSkipKnownUrl()
5050
public function testSkipOtherProtocol()
5151
{
5252
$data = "ftp://www.symfony.com";
53-
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
53+
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
5454
$event = DeprecationErrorHandler::getFormEvent($form, $data);
5555

5656
$filter = new FixUrlProtocolListener('http');

src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function getForm($name = 'name', $propertyPath = null)
4949

5050
protected function getMockForm()
5151
{
52-
return $this->getMock('Symfony\Component\Form\Tests\FormInterface');
52+
return $this->getMock('Symfony\Component\Form\Test\FormInterface');
5353
}
5454

5555
public function getBooleanMatrix1()

src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private function getDataMapper()
6262

6363
protected function getMockForm()
6464
{
65-
return $this->getMock('Symfony\Component\Form\Tests\FormInterface');
65+
return $this->getMock('Symfony\Component\Form\Test\FormInterface');
6666
}
6767

6868
public function testPreSetDataResizesForm()

src/Symfony/Component/Form/Tests/Extension/Core/EventListener/TrimListenerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function setUp()
2626
public function testTrim()
2727
{
2828
$data = " Foo! ";
29-
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
29+
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
3030
$event = DeprecationErrorHandler::getFormEvent($form, $data);
3131

3232
$filter = new TrimListener();
@@ -38,7 +38,7 @@ public function testTrim()
3838
public function testTrimSkipNonStrings()
3939
{
4040
$data = 1234;
41-
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
41+
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
4242
$event = DeprecationErrorHandler::getFormEvent($form, $data);
4343

4444
$filter = new TrimListener();
@@ -59,7 +59,7 @@ public function testTrimUtf8($chars)
5959
$data = mb_convert_encoding(pack('H*', implode('', $chars)), 'UTF-8', 'UCS-2BE');
6060
$data = $data."ab\ncd".$data;
6161

62-
$form = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
62+
$form = $this->getMock('Symfony\Component\Form\Test\FormInterface');
6363
$event = DeprecationErrorHandler::getFormEvent($form, $data);
6464

6565
$filter = new TrimListener();

src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function getDataMapper()
6060

6161
protected function getMockForm()
6262
{
63-
return $this->getMock('Symfony\Component\Form\Tests\FormInterface');
63+
return $this->getMock('Symfony\Component\Form\Test\FormInterface');
6464
}
6565

6666
// https://github.com/symfony/symfony/pull/5838

src/Symfony/Component/Form/Tests/Extension/Validator/EventListener/ValidationListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private function getForm($name = 'name', $propertyPath = null, $dataClass = null
9494

9595
private function getMockForm()
9696
{
97-
return $this->getMock('Symfony\Component\Form\Tests\FormInterface');
97+
return $this->getMock('Symfony\Component\Form\Test\FormInterface');
9898
}
9999

100100
// More specific mapping tests can be found in ViolationMapperTest

src/Symfony/Component/Form/Tests/SimpleFormTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ public function testCreateViewWithParent()
686686
{
687687
$type = $this->getMock('Symfony\Component\Form\ResolvedFormTypeInterface');
688688
$view = $this->getMock('Symfony\Component\Form\FormView');
689-
$parentForm = $this->getMock('Symfony\Component\Form\Tests\FormInterface');
689+
$parentForm = $this->getMock('Symfony\Component\Form\Test\FormInterface');
690690
$parentView = $this->getMock('Symfony\Component\Form\FormView');
691691
$form = $this->getBuilder()->setType($type)->getForm();
692692
$form->setParent($parentForm);

0 commit comments

Comments
 (0)
0