"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.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).

ConfigurationTest.php  (phplist-3.4.5.tgz):ConfigurationTest.php  (phplist-3.4.6.tgz)
skipping to change at line 107 skipping to change at line 107
return [ return [
[null], [null],
['PHPSESSID'], ['PHPSESSID'],
['a&b'], ['a&b'],
[',_-!@#$%^*(){}:<>/?'], [',_-!@#$%^*(){}:<>/?'],
]; ];
} }
/** /**
* @dataProvider getTestInvalidSessionName * @dataProvider getTestInvalidSessionName
* @expectedException \Symfony\Component\Config\Definition\Exception\Invalid ConfigurationException
*/ */
public function testInvalidSessionName($sessionName) public function testInvalidSessionName($sessionName)
{ {
$this->expectException('Symfony\Component\Config\Definition\Exception\In validConfigurationException');
$processor = new Processor(); $processor = new Processor();
$processor->processConfiguration( $processor->processConfiguration(
new Configuration(true), new Configuration(true),
[['session' => ['name' => $sessionName]]] [['session' => ['name' => $sessionName]]]
); );
} }
public function getTestInvalidSessionName() public function getTestInvalidSessionName()
{ {
return [ return [
skipping to change at line 163 skipping to change at line 163
[false, []], [false, []],
[[], []], [[], []],
[['10.0.0.0/8'], ['10.0.0.0/8']], [['10.0.0.0/8'], ['10.0.0.0/8']],
[['::ffff:0:0/96'], ['::ffff:0:0/96']], [['::ffff:0:0/96'], ['::ffff:0:0/96']],
[['0.0.0.0/0'], ['0.0.0.0/0']], [['0.0.0.0/0'], ['0.0.0.0/0']],
]; ];
} }
/** /**
* @group legacy * @group legacy
* @expectedException \Symfony\Component\Config\Definition\Exception\Invalid ConfigurationException
*/ */
public function testInvalidTypeTrustedProxies() public function testInvalidTypeTrustedProxies()
{ {
$this->expectException('Symfony\Component\Config\Definition\Exception\In validConfigurationException');
$processor = new Processor(); $processor = new Processor();
$configuration = new Configuration(true); $configuration = new Configuration(true);
$processor->processConfiguration($configuration, [ $processor->processConfiguration($configuration, [
[ [
'secret' => 's3cr3t', 'secret' => 's3cr3t',
'trusted_proxies' => 'Not an IP address', 'trusted_proxies' => 'Not an IP address',
], ],
]); ]);
} }
/** /**
* @group legacy * @group legacy
* @expectedException \Symfony\Component\Config\Definition\Exception\Invalid ConfigurationException
*/ */
public function testInvalidValueTrustedProxies() public function testInvalidValueTrustedProxies()
{ {
$this->expectException('Symfony\Component\Config\Definition\Exception\In validConfigurationException');
$processor = new Processor(); $processor = new Processor();
$configuration = new Configuration(true); $configuration = new Configuration(true);
$processor->processConfiguration($configuration, [ $processor->processConfiguration($configuration, [
[ [
'secret' => 's3cr3t', 'secret' => 's3cr3t',
'trusted_proxies' => ['Not an IP address'], 'trusted_proxies' => ['Not an IP address'],
], ],
]); ]);
} }
skipping to change at line 248 skipping to change at line 248
['foo-bar'], ['foo-bar'],
['foo_bar'], ['foo_bar'],
]; ];
} }
/** /**
* @dataProvider provideInvalidAssetConfigurationTests * @dataProvider provideInvalidAssetConfigurationTests
*/ */
public function testInvalidAssetsConfiguration(array $assetConfig, $expected Message) public function testInvalidAssetsConfiguration(array $assetConfig, $expected Message)
{ {
if (method_exists($this, 'expectException')) { $this->expectException(InvalidConfigurationException::class);
$this->expectException(InvalidConfigurationException::class); $this->expectExceptionMessage($expectedMessage);
$this->expectExceptionMessage($expectedMessage);
} else {
$this->setExpectedException(InvalidConfigurationException::class, $e
xpectedMessage);
}
$processor = new Processor(); $processor = new Processor();
$configuration = new Configuration(true); $configuration = new Configuration(true);
$processor->processConfiguration($configuration, [ $processor->processConfiguration($configuration, [
[ [
'assets' => $assetConfig, 'assets' => $assetConfig,
], ],
]); ]);
} }
skipping to change at line 381 skipping to change at line 377
'http_port' => 80, 'http_port' => 80,
'https_port' => 443, 'https_port' => 443,
'strict_requirements' => true, 'strict_requirements' => true,
], ],
'session' => [ 'session' => [
'enabled' => false, 'enabled' => false,
'storage_id' => 'session.storage.native', 'storage_id' => 'session.storage.native',
'handler_id' => 'session.handler.native_file', 'handler_id' => 'session.handler.native_file',
'cookie_httponly' => true, 'cookie_httponly' => true,
'gc_probability' => 1, 'gc_probability' => 1,
'save_path' => '%kernel.cache_dir%/sessions',
'metadata_update_threshold' => '0', 'metadata_update_threshold' => '0',
'use_strict_mode' => true, 'use_strict_mode' => true,
], ],
'request' => [ 'request' => [
'enabled' => false, 'enabled' => false,
'formats' => [], 'formats' => [],
], ],
'templating' => [ 'templating' => [
'enabled' => false, 'enabled' => false,
'hinclude_default_template' => null, 'hinclude_default_template' => null,
 End of changes. 8 change blocks. 
10 lines changed or deleted 6 lines changed or added

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