"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.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).

AbstractEventDispatcherTest.php  (phplist-3.4.5.tgz):AbstractEventDispatcherTest.php  (phplist-3.4.6.tgz)
skipping to change at line 270 skipping to change at line 270
$listener = new TestWithDispatcher(); $listener = new TestWithDispatcher();
$this->dispatcher->addListener('test', [$listener, 'foo']); $this->dispatcher->addListener('test', [$listener, 'foo']);
$this->assertNull($listener->name); $this->assertNull($listener->name);
$this->assertNull($listener->dispatcher); $this->assertNull($listener->dispatcher);
$this->dispatcher->dispatch('test'); $this->dispatcher->dispatch('test');
$this->assertEquals('test', $listener->name); $this->assertEquals('test', $listener->name);
$this->assertSame($this->dispatcher, $listener->dispatcher); $this->assertSame($this->dispatcher, $listener->dispatcher);
} }
/** /**
* @see https://bugs.php.net/bug.php?id=62976 * @see https://bugs.php.net/62976
* *
* This bug affects: * This bug affects:
* - The PHP 5.3 branch for versions < 5.3.18 * - The PHP 5.3 branch for versions < 5.3.18
* - The PHP 5.4 branch for versions < 5.4.8 * - The PHP 5.4 branch for versions < 5.4.8
* - The PHP 5.5 branch is not affected * - The PHP 5.5 branch is not affected
*/ */
public function testWorkaroundForPhpBug62976() public function testWorkaroundForPhpBug62976()
{ {
$dispatcher = $this->createEventDispatcher(); $dispatcher = $this->createEventDispatcher();
$dispatcher->addListener('bug.62976', new CallableClass()); $dispatcher->addListener('bug.62976', new CallableClass());
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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