Skip to content

Commit e37d1e6

Browse files
committed
removed obsolete tests
1 parent 703af63 commit e37d1e6

File tree

1 file changed

+0
-63
lines changed

1 file changed

+0
-63
lines changed

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -79,69 +79,6 @@ public function getTestInvalidSessionName()
7979
);
8080
}
8181

82-
/**
83-
* @dataProvider getTestValidTrustedProxiesData
84-
*/
85-
public function testValidTrustedProxies($trustedProxies, $processedProxies)
86-
{
87-
$processor = new Processor();
88-
$configuration = new Configuration(true);
89-
$config = $processor->processConfiguration($configuration, array(array(
90-
'secret' => 's3cr3t',
91-
'trusted_proxies' => $trustedProxies,
92-
)));
93-
94-
$this->assertEquals($processedProxies, $config['trusted_proxies']);
95-
}
96-
97-
public function getTestValidTrustedProxiesData()
98-
{
99-
return array(
100-
array(array('127.0.0.1'), array('127.0.0.1')),
101-
array(array('::1'), array('::1')),
102-
array(array('127.0.0.1', '::1'), array('127.0.0.1', '::1')),
103-
array(null, array()),
104-
array(false, array()),
105-
array(array(), array()),
106-
array(array('10.0.0.0/8'), array('10.0.0.0/8')),
107-
array(array('::ffff:0:0/96'), array('::ffff:0:0/96')),
108-
array(array('0.0.0.0/0'), array('0.0.0.0/0')),
109-
);
110-
}
111-
112-
/**
113-
* @group legacy
114-
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
115-
*/
116-
public function testInvalidTypeTrustedProxies()
117-
{
118-
$processor = new Processor();
119-
$configuration = new Configuration(true);
120-
$processor->processConfiguration($configuration, array(
121-
array(
122-
'secret' => 's3cr3t',
123-
'trusted_proxies' => 'Not an IP address',
124-
),
125-
));
126-
}
127-
128-
/**
129-
* @group legacy
130-
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
131-
*/
132-
public function testInvalidValueTrustedProxies()
133-
{
134-
$processor = new Processor();
135-
$configuration = new Configuration(true);
136-
137-
$processor->processConfiguration($configuration, array(
138-
array(
139-
'secret' => 's3cr3t',
140-
'trusted_proxies' => array('Not an IP address'),
141-
),
142-
));
143-
}
144-
14582
public function testAssetsCanBeEnabled()
14683
{
14784
$processor = new Processor();

0 commit comments

Comments
 (0)