"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/ButtonTest.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).

ButtonTest.php  (phplist-3.4.5.tgz):ButtonTest.php  (phplist-3.4.6.tgz)
skipping to change at line 33 skipping to change at line 33
private $dispatcher; private $dispatcher;
private $factory; private $factory;
protected function setUp() protected function setUp()
{ {
$this->dispatcher = $this->getMockBuilder('Symfony\Component\EventDispat cher\EventDispatcherInterface')->getMock(); $this->dispatcher = $this->getMockBuilder('Symfony\Component\EventDispat cher\EventDispatcherInterface')->getMock();
$this->factory = $this->getMockBuilder('Symfony\Component\Form\FormFacto ryInterface')->getMock(); $this->factory = $this->getMockBuilder('Symfony\Component\Form\FormFacto ryInterface')->getMock();
} }
/**
* @expectedException \Symfony\Component\Form\Exception\AlreadySubmittedExce
ption
*/
public function testSetParentOnSubmittedButton() public function testSetParentOnSubmittedButton()
{ {
$this->expectException('Symfony\Component\Form\Exception\AlreadySubmitte dException');
$button = $this->getButtonBuilder('button') $button = $this->getButtonBuilder('button')
->getForm() ->getForm()
; ;
$button->submit(''); $button->submit('');
$button->setParent($this->getFormBuilder()->getForm()); $button->setParent($this->getFormBuilder()->getForm());
} }
/** /**
 End of changes. 2 change blocks. 
4 lines changed or deleted 1 lines changed or added

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