"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

ResolvedFormTypeTest.php  (phplist-3.4.5.tgz):ResolvedFormTypeTest.php  (phplist-3.4.6.tgz)
skipping to change at line 14 skipping to change at line 14
* This file is part of the Symfony package. * This file is part of the Symfony package.
* *
* (c) Fabien Potencier <fabien@symfony.com> * (c) Fabien Potencier <fabien@symfony.com>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Symfony\Component\Form\Tests; namespace Symfony\Component\Form\Tests;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use Symfony\Component\Form\Form; use Symfony\Component\Form\Form;
use Symfony\Component\Form\FormConfigInterface; use Symfony\Component\Form\FormConfigInterface;
use Symfony\Component\Form\FormTypeExtensionInterface; use Symfony\Component\Form\FormTypeExtensionInterface;
use Symfony\Component\Form\FormTypeInterface; use Symfony\Component\Form\FormTypeInterface;
use Symfony\Component\Form\ResolvedFormType; use Symfony\Component\Form\ResolvedFormType;
use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\OptionsResolver\OptionsResolver;
/** /**
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
*/ */
class ResolvedFormTypeTest extends TestCase class ResolvedFormTypeTest extends TestCase
{ {
/** /**
* @var \PHPUnit_Framework_MockObject_MockObject * @var MockObject
*/ */
private $dispatcher; private $dispatcher;
/** /**
* @var \PHPUnit_Framework_MockObject_MockObject * @var MockObject
*/ */
private $factory; private $factory;
/** /**
* @var \PHPUnit_Framework_MockObject_MockObject * @var MockObject
*/ */
private $dataMapper; private $dataMapper;
/** /**
* @var \PHPUnit_Framework_MockObject_MockObject|FormTypeInterface * @var MockObject|FormTypeInterface
*/ */
private $parentType; private $parentType;
/** /**
* @var \PHPUnit_Framework_MockObject_MockObject|FormTypeInterface * @var MockObject|FormTypeInterface
*/ */
private $type; private $type;
/** /**
* @var \PHPUnit_Framework_MockObject_MockObject|FormTypeExtensionInterface * @var MockObject|FormTypeExtensionInterface
*/ */
private $extension1; private $extension1;
/** /**
* @var \PHPUnit_Framework_MockObject_MockObject|FormTypeExtensionInterface * @var MockObject|FormTypeExtensionInterface
*/ */
private $extension2; private $extension2;
/** /**
* @var ResolvedFormType * @var ResolvedFormType
*/ */
private $parentResolvedType; private $parentResolvedType;
/** /**
* @var ResolvedFormType * @var ResolvedFormType
skipping to change at line 362 skipping to change at line 363
[__NAMESPACE__.'\Fixtures\FooType', 'foo'], [__NAMESPACE__.'\Fixtures\FooType', 'foo'],
[__NAMESPACE__.'\Fixtures\Foo', 'foo'], [__NAMESPACE__.'\Fixtures\Foo', 'foo'],
[__NAMESPACE__.'\Fixtures\Type', 'type'], [__NAMESPACE__.'\Fixtures\Type', 'type'],
[__NAMESPACE__.'\Fixtures\FooBarHTMLType', 'foo_bar_html'], [__NAMESPACE__.'\Fixtures\FooBarHTMLType', 'foo_bar_html'],
[__NAMESPACE__.'\Fixtures\Foo1Bar2Type', 'foo1_bar2'], [__NAMESPACE__.'\Fixtures\Foo1Bar2Type', 'foo1_bar2'],
[__NAMESPACE__.'\Fixtures\FBooType', 'f_boo'], [__NAMESPACE__.'\Fixtures\FBooType', 'f_boo'],
]; ];
} }
/** /**
* @return \PHPUnit_Framework_MockObject_MockObject * @return MockObject
*/ */
private function getMockFormType($typeClass = 'Symfony\Component\Form\Abstra ctType') private function getMockFormType($typeClass = 'Symfony\Component\Form\Abstra ctType')
{ {
return $this->getMockBuilder($typeClass)->setMethods(['getBlockPrefix', 'configureOptions', 'finishView', 'buildView', 'buildForm'])->getMock(); return $this->getMockBuilder($typeClass)->setMethods(['getBlockPrefix', 'configureOptions', 'finishView', 'buildView', 'buildForm'])->getMock();
} }
/** /**
* @return \PHPUnit_Framework_MockObject_MockObject * @return MockObject
*/ */
private function getMockFormTypeExtension() private function getMockFormTypeExtension()
{ {
return $this->getMockBuilder('Symfony\Component\Form\AbstractTypeExtensi on')->setMethods(['getExtendedType', 'configureOptions', 'finishView', 'buildVie w', 'buildForm'])->getMock(); return $this->getMockBuilder('Symfony\Component\Form\AbstractTypeExtensi on')->setMethods(['getExtendedType', 'configureOptions', 'finishView', 'buildVie w', 'buildForm'])->getMock();
} }
/** /**
* @return \PHPUnit_Framework_MockObject_MockObject * @return MockObject
*/ */
private function getMockFormFactory() private function getMockFormFactory()
{ {
return $this->getMockBuilder('Symfony\Component\Form\FormFactoryInterfac e')->getMock(); return $this->getMockBuilder('Symfony\Component\Form\FormFactoryInterfac e')->getMock();
} }
} }
 End of changes. 11 change blocks. 
10 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)