public function ParserIniTest::providerParse

8.0.x ParserIniTest.php public ParserIniTest::providerParse()
7.x ParserIniTest.php public ParserIniTest::providerParse()
master ParserIniTest.php public ParserIniTest::providerParse()

Provides INI snippets to test the parser.

File

tests/Drush/Tests/Make/Parser/ParserIniTest.php, line 33

Namespace

Drush\Tests\Make\Parser

Class

ParserIniTest
@coversDefaultClass \Drush\Make\Parser\ParserIni

Code

public function providerParse() {
  $snippets[] = array('foo[bar][baz] = one', array('foo' => array('bar' => array('baz' => 'one'))));
  $snippets[] = array("; A comment should not be part of the returned array\nprojects[] = drupal", array('projects' => array('drupal')));

  // @todo make more tests.
  return $snippets;
}