diff --git a/src/Symfony/Component/Form/AbstractType.php b/src/Symfony/Component/Form/AbstractType.php index 11fec087df..00d374b7f7 100644 --- a/src/Symfony/Component/Form/AbstractType.php +++ b/src/Symfony/Component/Form/AbstractType.php @@ -51,7 +51,7 @@ abstract class AbstractType implements FormTypeInterface */ public function setDefaultOptions(OptionsResolverInterface $resolver) { - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC')); $resolver->setDefaults($this->getDefaultOptions(array())); $resolver->addAllowedValues($this->getAllowedOptionValues(array())); restore_error_handler(); diff --git a/src/Symfony/Component/Form/AbstractTypeExtension.php b/src/Symfony/Component/Form/AbstractTypeExtension.php index 629fb5527c..38f4a8f1b6 100644 --- a/src/Symfony/Component/Form/AbstractTypeExtension.php +++ b/src/Symfony/Component/Form/AbstractTypeExtension.php @@ -44,7 +44,7 @@ abstract class AbstractTypeExtension implements FormTypeExtensionInterface */ public function setDefaultOptions(OptionsResolverInterface $resolver) { - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC')); $resolver->setDefaults($this->getDefaultOptions()); $resolver->addAllowedValues($this->getAllowedOptionValues()); restore_error_handler(); diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php index b1895aa588..f43192f698 100644 --- a/src/Symfony/Component/Form/Form.php +++ b/src/Symfony/Component/Form/Form.php @@ -367,7 +367,7 @@ class Form implements \IteratorAggregate, FormInterface // Hook to change content of the data if ($dispatcher->hasListeners(FormEvents::PRE_SET_DATA) || $dispatcher->hasListeners(FormEvents::SET_DATA)) { - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC')); $event = new FormEvent($this, $modelData); restore_error_handler(); $dispatcher->dispatch(FormEvents::PRE_SET_DATA, $event); @@ -532,7 +532,7 @@ class Form implements \IteratorAggregate, FormInterface // Hook to change content of the data bound by the browser if ($dispatcher->hasListeners(FormEvents::PRE_BIND) || $dispatcher->hasListeners(FormEvents::BIND_CLIENT_DATA)) { - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC')); $event = new FormEvent($this, $submittedData); restore_error_handler(); $dispatcher->dispatch(FormEvents::PRE_BIND, $event); @@ -594,7 +594,7 @@ class Form implements \IteratorAggregate, FormInterface // Hook to change content of the data into the normalized // representation if ($dispatcher->hasListeners(FormEvents::BIND) || $dispatcher->hasListeners(FormEvents::BIND_NORM_DATA)) { - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC')); $event = new FormEvent($this, $normData); restore_error_handler(); $dispatcher->dispatch(FormEvents::BIND, $event); @@ -620,7 +620,7 @@ class Form implements \IteratorAggregate, FormInterface $dispatcher->dispatch(FormEvents::POST_BIND, $event); } - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC')); foreach ($this->config->getValidators() as $validator) { $validator->validate($this); } diff --git a/src/Symfony/Component/Form/FormFactory.php b/src/Symfony/Component/Form/FormFactory.php index a5d8053724..cf6c6c748f 100644 --- a/src/Symfony/Component/Form/FormFactory.php +++ b/src/Symfony/Component/Form/FormFactory.php @@ -99,7 +99,7 @@ class FormFactory implements FormFactoryInterface $typeGuess = $guesser->guessType($class, $property); $maxLengthGuess = $guesser->guessMaxLength($class, $property); // Keep $minLengthGuess for BC until Symfony 2.3 - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC')); $minLengthGuess = $guesser->guessMinLength($class, $property); restore_error_handler(); $requiredGuess = $guesser->guessRequired($class, $property); diff --git a/src/Symfony/Component/Form/FormRegistry.php b/src/Symfony/Component/Form/FormRegistry.php index 39a3f6befe..c45233c7aa 100644 --- a/src/Symfony/Component/Form/FormRegistry.php +++ b/src/Symfony/Component/Form/FormRegistry.php @@ -131,7 +131,7 @@ class FormRegistry implements FormRegistryInterface ); } - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handleBC')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handleBC')); $this->addType($this->resolvedTypeFactory->createResolvedType( $type, $typeExtensions, diff --git a/src/Symfony/Component/Form/Tests/DeprecationErrorHandler.php b/src/Symfony/Component/Form/Test/DeprecationErrorHandler.php similarity index 85% rename from src/Symfony/Component/Form/Tests/DeprecationErrorHandler.php rename to src/Symfony/Component/Form/Test/DeprecationErrorHandler.php index 0a4c970e85..8c6dd90831 100644 --- a/src/Symfony/Component/Form/Tests/DeprecationErrorHandler.php +++ b/src/Symfony/Component/Form/Test/DeprecationErrorHandler.php @@ -1,6 +1,6 @@ getMock('Symfony\Component\Form\Tests\FormInterface'); + $form = $this->getMock('Symfony\Component\Form\Test\FormInterface'); $form->expects($this->any()) ->method('getName') diff --git a/src/Symfony/Component/Form/Tests/CompoundFormTest.php b/src/Symfony/Component/Form/Tests/CompoundFormTest.php index 4e4a48e1fc..9f1ce08d9e 100644 --- a/src/Symfony/Component/Form/Tests/CompoundFormTest.php +++ b/src/Symfony/Component/Form/Tests/CompoundFormTest.php @@ -118,14 +118,14 @@ class CompoundFormTest extends AbstractFormTest { $this->form->add($this->getBuilder()->getForm()); - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle')); $this->assertTrue($this->form->hasChildren()); restore_error_handler(); } public function testHasNoChildren() { - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle')); $this->assertFalse($this->form->hasChildren()); restore_error_handler(); } @@ -231,7 +231,7 @@ class CompoundFormTest extends AbstractFormTest $this->form->remove('foo'); $this->assertNull($child->getParent()); - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle')); $this->assertFalse($this->form->hasChildren()); restore_error_handler(); } diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixRadioInputListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixRadioInputListenerTest.php index aa404eb7b3..5a7f5e7d17 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixRadioInputListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixRadioInputListenerTest.php @@ -13,7 +13,7 @@ namespace Symfony\Component\Form\Tests\Extension\Core\EventListener; use Symfony\Component\Form\Extension\Core\EventListener\FixRadioInputListener; use Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList; -use Symfony\Component\Form\Tests\DeprecationErrorHandler; +use Symfony\Component\Form\Test\DeprecationErrorHandler; class FixRadioInputListenerTest extends \PHPUnit_Framework_TestCase { @@ -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); diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php index d8f68cb7da..70db9b421e 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php @@ -12,7 +12,7 @@ namespace Symfony\Component\Form\Tests\Extension\Core\EventListener; use Symfony\Component\Form\Extension\Core\EventListener\FixUrlProtocolListener; -use Symfony\Component\Form\Tests\DeprecationErrorHandler; +use Symfony\Component\Form\Test\DeprecationErrorHandler; class FixUrlProtocolListenerTest extends \PHPUnit_Framework_TestCase { @@ -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'); diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerTest.php index 75ae84a6b7..8e0ccad7b1 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/MergeCollectionListenerTest.php @@ -12,7 +12,7 @@ namespace Symfony\Component\Form\Tests\Extension\Core\EventListener; use Symfony\Component\Form\Extension\Core\EventListener\MergeCollectionListener; -use Symfony\Component\Form\Tests\DeprecationErrorHandler; +use Symfony\Component\Form\Test\DeprecationErrorHandler; abstract class MergeCollectionListenerTest extends \PHPUnit_Framework_TestCase { @@ -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() diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php index 201882e888..459b1d7f24 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php @@ -13,7 +13,7 @@ namespace Symfony\Component\Form\Tests\Extension\Core\EventListener; use Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener; use Symfony\Component\Form\FormBuilder; -use Symfony\Component\Form\Tests\DeprecationErrorHandler; +use Symfony\Component\Form\Test\DeprecationErrorHandler; class ResizeFormListenerTest extends \PHPUnit_Framework_TestCase { @@ -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() diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/TrimListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/TrimListenerTest.php index eb46f18e27..49419065d2 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/TrimListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/TrimListenerTest.php @@ -12,7 +12,7 @@ namespace Symfony\Component\Form\Tests\Extension\Core\EventListener; use Symfony\Component\Form\Extension\Core\EventListener\TrimListener; -use Symfony\Component\Form\Tests\DeprecationErrorHandler; +use Symfony\Component\Form\Test\DeprecationErrorHandler; class TrimListenerTest extends \PHPUnit_Framework_TestCase { @@ -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(); diff --git a/src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php index 236b7c6462..49c40d3b05 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php @@ -13,7 +13,7 @@ namespace Symfony\Component\Form\Tests\Extension\Csrf\EventListener; use Symfony\Component\Form\FormBuilder; use Symfony\Component\Form\Extension\Csrf\EventListener\CsrfValidationListener; -use Symfony\Component\Form\Tests\DeprecationErrorHandler; +use Symfony\Component\Form\Test\DeprecationErrorHandler; class CsrfValidationListenerTest extends \PHPUnit_Framework_TestCase { @@ -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 diff --git a/src/Symfony/Component/Form/Tests/Extension/HttpFoundation/EventListener/BindRequestListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/HttpFoundation/EventListener/BindRequestListenerTest.php index 197eb18252..94ae47a3c4 100644 --- a/src/Symfony/Component/Form/Tests/Extension/HttpFoundation/EventListener/BindRequestListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/HttpFoundation/EventListener/BindRequestListenerTest.php @@ -16,7 +16,7 @@ use Symfony\Component\Form\Form; use Symfony\Component\Form\FormConfigBuilder; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\File\UploadedFile; -use Symfony\Component\Form\Tests\DeprecationErrorHandler; +use Symfony\Component\Form\Test\DeprecationErrorHandler; /** * @author Bernhard Schussek diff --git a/src/Symfony/Component/Form/Tests/Extension/Validator/EventListener/ValidationListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Validator/EventListener/ValidationListenerTest.php index 956c841726..7e358910e2 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Validator/EventListener/ValidationListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Validator/EventListener/ValidationListenerTest.php @@ -18,7 +18,7 @@ use Symfony\Component\Form\Util\PropertyPath; use Symfony\Component\Form\Extension\Validator\Constraints\Form; use Symfony\Component\Form\Extension\Validator\EventListener\ValidationListener; use Symfony\Component\Validator\ConstraintViolation; -use Symfony\Component\Form\Tests\DeprecationErrorHandler; +use Symfony\Component\Form\Test\DeprecationErrorHandler; class ValidationListenerTest extends \PHPUnit_Framework_TestCase { @@ -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 diff --git a/src/Symfony/Component/Form/Tests/FormFactoryTest.php b/src/Symfony/Component/Form/Tests/FormFactoryTest.php index fd20435310..aa43310850 100644 --- a/src/Symfony/Component/Form/Tests/FormFactoryTest.php +++ b/src/Symfony/Component/Form/Tests/FormFactoryTest.php @@ -85,7 +85,7 @@ class FormFactoryTest extends \PHPUnit_Framework_TestCase ->method('addType') ->with($resolvedType); - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle')); $this->factory->addType($type); restore_error_handler(); } @@ -97,7 +97,7 @@ class FormFactoryTest extends \PHPUnit_Framework_TestCase ->with('name') ->will($this->returnValue('RESULT')); - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle')); $this->assertSame('RESULT', $this->factory->hasType('name')); restore_error_handler(); } @@ -116,7 +116,7 @@ class FormFactoryTest extends \PHPUnit_Framework_TestCase ->with('name') ->will($this->returnValue($resolvedType)); - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle')); $this->assertEquals($type, $this->factory->getType('name')); restore_error_handler(); } @@ -638,6 +638,6 @@ class FormFactoryTest extends \PHPUnit_Framework_TestCase private function getMockFormBuilder() { - return $this->getMock('Symfony\Component\Form\Tests\FormBuilderInterface'); + return $this->getMock('Symfony\Component\Form\Test\FormBuilderInterface'); } } diff --git a/src/Symfony/Component/Form/Tests/FormIntegrationTestCase.php b/src/Symfony/Component/Form/Tests/FormIntegrationTestCase.php index 428265a18c..fad0616280 100644 --- a/src/Symfony/Component/Form/Tests/FormIntegrationTestCase.php +++ b/src/Symfony/Component/Form/Tests/FormIntegrationTestCase.php @@ -33,7 +33,7 @@ abstract class FormIntegrationTestCase extends \PHPUnit_Framework_TestCase ->addExtensions($this->getExtensions()) ->getFormFactory(); - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle')); } protected function tearDown() diff --git a/src/Symfony/Component/Form/Tests/FormRegistryTest.php b/src/Symfony/Component/Form/Tests/FormRegistryTest.php index e0d9aa7dee..43232938c6 100644 --- a/src/Symfony/Component/Form/Tests/FormRegistryTest.php +++ b/src/Symfony/Component/Form/Tests/FormRegistryTest.php @@ -76,7 +76,7 @@ class FormRegistryTest extends \PHPUnit_Framework_TestCase ->method('getName') ->will($this->returnValue('foo')); - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle')); $this->registry->addType($resolvedType); restore_error_handler(); @@ -225,7 +225,7 @@ class FormRegistryTest extends \PHPUnit_Framework_TestCase $this->assertFalse($this->registry->hasType('foo')); - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle')); $this->registry->addType($resolvedType); restore_error_handler(); diff --git a/src/Symfony/Component/Form/Tests/SimpleFormTest.php b/src/Symfony/Component/Form/Tests/SimpleFormTest.php index 0df934b135..6d13d4a568 100644 --- a/src/Symfony/Component/Form/Tests/SimpleFormTest.php +++ b/src/Symfony/Component/Form/Tests/SimpleFormTest.php @@ -644,7 +644,7 @@ class SimpleFormTest extends AbstractFormTest { $test = $this; $validator = $this->getFormValidator(); - set_error_handler(array('Symfony\Component\Form\Tests\DeprecationErrorHandler', 'handle')); + set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle')); $form = $this->getBuilder() ->addValidator($validator) ->getForm(); @@ -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);