8000 merged branch tvlooy/form_test (PR #6375) · loicfrering/symfony@7bc9caa · GitHub
[go: up one dir, main page]

Skip to content

Commit 7bc9caa

Browse files
committed
merged branch tvlooy/form_test (PR symfony#6375)
This PR was merged into the master branch. Commits ------- cda1621 Move FormInterface too 0544351 Move DeprecationErrorHandler to Test folder so it's not removed when building the zip file f56a2b9 Fix symfony#6374 move FormBuilderInterface from Tests to Test Discussion ---------- Fix symfony#6374 move FormBuilderInterface from Tests to Test --------------------------------------------------------------------------- by fabpot at 2012-12-16T07:47:55Z Are there any other classes in the tests that might be useful for testing userland forms? ping @bschussek --------------------------------------------------------------------------- by colinfrei at 2012-12-16T08:24:51Z The DeprecationErrorHandler will need to be in the Test directory as well, as its handleBC method is used for handling BC code that's not in tests. --------------------------------------------------------------------------- by colinfrei at 2012-12-16T09:06:51Z Wanted to make a pull request to tvlooy's branch with the DeprecationErrorHandler stuff, but can't figure out how to do that - the commit is here: colinfrei@ec56379 --------------------------------------------------------------------------- by stof at 2012-12-16T19:53:59Z @fabpot The other extending interfaces provided for mocking purpose (as mocking an interface extending ``Traversable`` directly does not work). So we have FormInterface too at least
2 parents 0b69f09 + cda1621 commit 7bc9caa

22 files changed

+46
-46
lines changed

src/Symfony/Component/Form/AbstractType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function finishView(FormView $view, FormInterface $form, array $options)
5151
*/
5252
public function setDefaultOptions(OptionsResolverInterface $resolver)
5353
{
54-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC'));
54+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC'));
5555
$resolver->setDefaults($this->getDefaultOptions(array()));
5656
$resolver->addAllowedValues($this->getAllowedOptionValues(array()));
5757
restore_error_handler();

src/Symfony/Component/Form/AbstractTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function finishView(FormView $view, FormInterface $form, array $options)
4444
*/
4545
public function setDefaultOptions(OptionsResolverInterface $resolver)
4646
{
47-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC'));
47+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC'));
4848
$resolver->setDefaults($this->getDefaultOptions());
4949
$resolver->addAllowedValues($this->getAllowedOptionValues());
5050
restore_error_handler();

src/Symfony/Component/Form/Form.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public function setData($modelData)
367367

368368
// Hook to change content of the data
369369
if ($dispatcher->hasListeners(FormEvents::PRE_SET_DATA) || $dispatcher->hasListeners(FormEvents::SET_DATA)) {
370-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC'));
370+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC'));
371371
$event = new FormEvent($this, $modelData);
372372
restore_error_handler();
373373
$dispatcher->dispatch(FormEvents::PRE_SET_DATA, $event);
@@ -532,7 +532,7 @@ public function bind($submittedData)
532532

533533
// Hook to change content of the data bound by the browser
534534
if ($dispatcher->hasListeners(FormEvents::PRE_BIND) || $dispatcher->hasListeners(FormEvents::BIND_CLIENT_DATA)) {
535-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC'));
535+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC'));
536536
$event = new FormEvent($this, $submittedData);
537537
restore_error_handler();
538538
$dispatcher->dispatch(FormEvents::PRE_BIND, $event);
@@ -594,7 +594,7 @@ public function bind($submittedData)
594594
// Hook to change content of the data into the normalized
595595
// representation
596596
if ($dispatcher->hasListeners(FormEvents::BIND) || $dispatcher->hasListeners(FormEvents::BIND_NORM_DATA)) {
597-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC'));
597+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC'));
598598
$event = new FormEvent($this, $normData);
599599
restore_error_handler();
600600
$dispatcher->dispatch(FormEvents::BIND, $event);
@@ -620,7 +620,7 @@ public function bind($submittedData)
620620
$dispatcher->dispatch(FormEvents::POST_BIND, $event);
621621
}
622622

623-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC'));
623+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC'));
624624
foreach ($this->config->getValidators() as $validator) {
625625
$validator->validate($this);
626626
}

src/Symfony/Component/Form/FormFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function createBuilderForProperty($class, $property, $data = null, array
9999
$typeGuess = $guesser->guessType($class, $property);
100100
$maxLengthGuess = $guesser->guessMaxLength($class, $property);
101101
// Keep $minLengthGuess for BC until Symfony 2.3
102-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC'));
102+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC'));
103103
$minLengthGuess = $guesser->guessMinLength($class, $property);
104104
restore_error_handler();
105105
$requiredGuess = $guesser->guessRequired($class, $property);

src/Symfony/Component/Form/FormRegistry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private function resolveAndAddType(FormTypeInterface $type)
131131
);
132132
}
133133

134-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC'));
134+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC'));
135135
$this->addType($this->resolvedTypeFactory->createResolvedType(
136136
$type,
137137
$typeExtensions,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Symfony\Component\Form\Tests;
3+
namespace Symfony\Component\Form\Test;
44

55
use Symfony\Component\Form\FormInterface as NonTestFormInterface;
66
use Symfony\Component\Form\FormEvent;
@@ -27,7 +27,7 @@ public static function handleBC($errorNumber, $message, $file, $line, $context)
2727

2828
public static function getFormEvent(NonTestFormInterface $form, $data)
2929
{
30-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle'));
30+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle'));
3131
$event = new FormEvent($form, $data);
3232
restore_error_handler();
3333

src/Symfony/Component/Form/Tests/FormBuilderInterface.php renamed to src/Symfony/Component/Form/Test/FormBuilderInterface.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 FormBuilderInterface extends \Iterator, \Symfony\Component\Form\FormBuilderInterface
1515
{

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/CompoundFormTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ public function testHasChildren()
118118
{
119119
$this->form->add($this->getBuilder()->getForm());
120120

121-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle'));
121+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle'));
122122
$this->assertTrue($this->form->hasChildren());
123123
restore_error_handler();
124124
}
125125

126126
public function testHasNoChildren()
127127
{
128-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle'));
128+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle'));
129129
$this->assertFalse($this->form->hasChildren());
130130
restore_error_handler();
131131
}
@@ -231,7 +231,7 @@ public function testRemove()
231231
$this->form->remove('foo');
232232

233233
$this->assertNull($child->getParent());
234-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle'));
234+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle'));
235235
$this->assertFalse($this->form->hasChildren());
236236
restore_error_handler();
237237
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\Form\Extension\Core\EventListener\FixRadioInputListener;
1515
use Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList;
16-
use Symfony\Component\Form\Tests\DeprecationErrorHandler;
16+
use Symfony\Component\Form\Test\DeprecationErrorHandler;
1717

1818
class FixRadioInputListenerTest extends \PHPUnit_Framework_TestCase
1919
{
@@ -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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Form\Tests\Extension\Core\EventListener;
1313

1414
use Symfony\Component\Form\Extension\Core\EventListener\FixUrlProtocolListener;
15-
use Symfony\Component\Form\Tests\DeprecationErrorHandler;
15+
use Symfony\Component\Form\Test\DeprecationErrorHandler;
1616

1717
class FixUrlProtocolListenerTest extends \PHPUnit_Framework_TestCase
1818
{
@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Form\Tests\Extension\Core\EventListener;
1313

1414
use Symfony\Component\Form\Extension\Core\EventListener\MergeCollectionListener;
15-
use Symfony\Component\Form\Tests\DeprecationErrorHandler;
15+
use Symfony\Component\Form\Test\DeprecationErrorHandler;
1616

1717
abstract class MergeCollectionListenerTest extends \PHPUnit_Framework_TestCase
1818
{
@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener;
1515
use Symfony\Component\Form\FormBuilder;
16-
use Symfony\Component\Form\Tests\DeprecationErrorHandler;
16+
use Symfony\Component\Form\Test\DeprecationErrorHandler;
1717

1818
class ResizeFormListenerTest extends \PHPUnit_Framework_TestCase
1919
{
@@ -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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Form\Tests\Extension\Core\EventListener;
1313

1414
use Symfony\Component\Form\Extension\Core\EventListener\TrimListener;
15-
use Symfony\Component\Form\Tests\DeprecationErrorHandler;
15+
use Symfony\Component\Form\Test\DeprecationErrorHandler;
1616

1717
class TrimListenerTest extends \PHPUnit_Framework_TestCase
1818
{
@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\Form\FormBuilder;
1515
use Symfony\Component\Form\Extension\Csrf\EventListener\CsrfValidationListener;
16-
use Symfony\Component\Form\Tests\DeprecationErrorHandler;
16+
use Symfony\Component\Form\Test\DeprecationErrorHandler;
1717

1818
class CsrfValidationListenerTest extends \PHPUnit_Framework_TestCase
1919
{
@@ -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/HttpFoundation/EventListener/BindRequestListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\Component\Form\FormConfigBuilder;
1717
use Symfony\Component\HttpFoundation\Request;
1818
use Symfony\Component\HttpFoundation\File\UploadedFile;
19-
use Symfony\Component\Form\Tests\DeprecationErrorHandler;
19+
use Symfony\Component\Form\Test\DeprecationErrorHandler;
2020

2121
/**
2222
* @author Bernhard Schussek <bschussek@gmail.com>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Symfony\Component\Form\Extension\Validator\Constraints\Form;
1919
use Symfony\Component\Form\Extension\Validator\EventListener\ValidationListener;
2020
use Symfony\Component\Validator\ConstraintViolation;
21-
use Symfony\Component\Form\Tests\DeprecationErrorHandler;
21+
use Symfony\Component\Form\Test\DeprecationErrorHandler;
2222

2323
class ValidationListenerTest extends \PHPUnit_Framework_TestCase
2424
{
@@ -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/FormFactoryTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testAddType()
8585
->method('addType')
8686
->with($resolvedType);
8787

88-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle'));
88+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle'));
8989
$this->factory->addType($type);
9090
restore_error_handler();
9191
}
@@ -97,7 +97,7 @@ public function testHasType()
9797
->with('name')
9898
->will($this->returnValue('RESULT'));
9999

100-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle'));
100+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle'));
101101
$this->assertSame('RESULT', $this->factory->hasType('name'));
102102
restore_error_handler();
103103
}
@@ -116,7 +116,7 @@ public function testGetType()
116116
->with('name')
117117
->will($this->returnValue($resolvedType));
118118

119-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle'));
119+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle'));
120120
$this->assertEquals($type, $this->factory->getType('name'));
121121
restore_error_handler();
122122
}
@@ -638,6 +638,6 @@ private function getMockType()
638638

639639
private function getMockFormBuilder()
640640
{
641-
return $this->getMock('Symfony\Component\Form\Tests\FormBuilderInterface');
641+
return $th 10000 is->getMock('Symfony\Component\Form\Test\FormBuilderInterface');
642642
}
643643
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function setUp()
3333
->addExtensions($this->getExtensions())
3434
->getFormFactory();
3535

36-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle'));
36+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle'));
3737
}
3838

3939
protected function tearDown()

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testGetTypeReturnsAddedType()
7676
->method('getName')
7777
->will($this->returnValue('foo'));
7878

79-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle'));
79+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle'));
8080
$this->registry->addType($resolvedType);
8181
restore_error_handler();
8282

@@ -225,7 +225,7 @@ public function testHasTypeAfterAdding()
225225

226226
$this->assertFalse($this->registry->hasType('foo'));
227227

228-
set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle'));
228+
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle'));
229229
$this->registry->addType($resolvedType);
230230
restore_error_handler();
231231

0 commit comments

Comments
 (0)
0