X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fhttp-foundation%2FTests%2FParameterBagTest.php;fp=vendor%2Fsymfony%2Fhttp-foundation%2FTests%2FParameterBagTest.php;h=5311a0d8036c84e66d324cc73d4c05219f22abcd;hp=ac1c2cc7b785e6ce98302003c6f5a71fb2f5d720;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/symfony/http-foundation/Tests/ParameterBagTest.php b/vendor/symfony/http-foundation/Tests/ParameterBagTest.php index ac1c2cc7b..5311a0d80 100644 --- a/vendor/symfony/http-foundation/Tests/ParameterBagTest.php +++ b/vendor/symfony/http-foundation/Tests/ParameterBagTest.php @@ -74,41 +74,6 @@ class ParameterBagTest extends TestCase $this->assertNull($bag->get('foo[bar]')); } - /** - * @group legacy - * @dataProvider getInvalidPaths - * @expectedException \InvalidArgumentException - */ - public function testGetDeepWithInvalidPaths($path) - { - $bag = new ParameterBag(array('foo' => array('bar' => 'moo'))); - - $bag->get($path, null, true); - } - - public function getInvalidPaths() - { - return array( - array('foo[['), - array('foo[d'), - array('foo[bar]]'), - array('foo[bar]d'), - ); - } - - /** - * @group legacy - */ - public function testGetDeep() - { - $bag = new ParameterBag(array('foo' => array('bar' => array('moo' => 'boo')))); - - $this->assertEquals(array('moo' => 'boo'), $bag->get('foo[bar]', null, true)); - $this->assertEquals('boo', $bag->get('foo[bar][moo]', null, true)); - $this->assertEquals('default', $bag->get('foo[bar][foo]', 'default', true)); - $this->assertEquals('default', $bag->get('bar[moo][foo]', 'default', true)); - } - public function testSet() { $bag = new ParameterBag(array());