"Fossies" - the Fresh Open Source Software Archive  

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

ArgumentMetadataTest.php  (phplist-3.4.5.tgz):ArgumentMetadataTest.php  (phplist-3.4.6.tgz)
skipping to change at line 35 skipping to change at line 35
public function testDefaultValueAvailable() public function testDefaultValueAvailable()
{ {
$argument = new ArgumentMetadata('foo', 'string', false, true, 'default value', true); $argument = new ArgumentMetadata('foo', 'string', false, true, 'default value', true);
$this->assertTrue($argument->isNullable()); $this->assertTrue($argument->isNullable());
$this->assertTrue($argument->hasDefaultValue()); $this->assertTrue($argument->hasDefaultValue());
$this->assertSame('default value', $argument->getDefaultValue()); $this->assertSame('default value', $argument->getDefaultValue());
} }
/**
* @expectedException \LogicException
*/
public function testDefaultValueUnavailable() public function testDefaultValueUnavailable()
{ {
$this->expectException('LogicException');
$argument = new ArgumentMetadata('foo', 'string', false, false, null, fa lse); $argument = new ArgumentMetadata('foo', 'string', false, false, null, fa lse);
$this->assertFalse($argument->isNullable()); $this->assertFalse($argument->isNullable());
$this->assertFalse($argument->hasDefaultValue()); $this->assertFalse($argument->hasDefaultValue());
$argument->getDefaultValue(); $argument->getDefaultValue();
} }
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added

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