Contao\CoreBundle\Test\DataCollector\ContaoDataCollectorTest::testWithUnknownKey PHP Method

testWithUnknownKey() public method

Tests that an empty array is returned if the key is unknown.
public testWithUnknownKey ( )
    public function testWithUnknownKey()
    {
        $collector = new ContaoDataCollector([]);
        $method = new \ReflectionMethod($collector, 'getData');
        $method->setAccessible(true);
        $this->assertEquals([], $method->invokeArgs($collector, ['foo']));
    }