toArray() public method

public toArray ( )
Example #1
0
 /**
  * @test
  * @expectedException RuntimeException
  * @expectedExceptionMessage Failed to parse config-file 'data://,'
  */
 public function parseEmptyFile()
 {
     $configFile = new ConfigFile();
     $configFile->loadFile('data://,');
     $this->addToAssertionCount(1);
     $configFile->toArray();
     $this->fail('An expected exception has not been thrown.');
 }