// is case-insensitive.
$this->
assertSame(['system.performance'
],
$this->storage->
listAll('system'
), 'The FileStorage::listAll() with prefix works.'
);
$this->
assertSame([],
$this->storage->
listAll('System'
), 'The FileStorage::listAll() is case sensitive.'
);
} /**
* Tests UnsupportedDataTypeConfigException.
*/
public function testUnsupportedDataTypeConfigException() { $name = 'core.extension';
$path =
$this->storage->
getFilePath($name);
$this->
expectException(UnsupportedDataTypeConfigException::
class);
$this->
expectExceptionMessageMatches("@Invalid data type in config
$name, found in file
$path: @"
);
file_put_contents($path, PHP_EOL . 'foo : @bar', FILE_APPEND
);
$this->storage->
read($name);
}}