load() public method

Load a PHP file
public load ( string $resource, string | null $type = null ) : array
$resource string File path to a PHP file that returns an array
$type string | null This is not used
return array Array containing data from the PHP file
 public function testLoadsPhpArrayConfigFromFile()
 {
     $this->assertSame(include __DIR__ . '/../../../Fixtures/fixture_config.php', $this->loader->load(__DIR__ . '/../../../Fixtures/fixture_config.php'));
 }