assertSame( [], $source->load() ); } public function testLoadInvalidPhpSource() { $this->expectException( SettingsBuilderException::class ); $source = new PhpSettingsSource( __DIR__ . '/fixtures/bad-strategies.php' ); $source->load(); } public function testLoadFileNotArray() { $this->expectException( SettingsBuilderException::class ); // Let this just be an empty string. $source = new PhpSettingsSource( __DIR__ . '/fixtures/strategies-bad-structure.php' ); $source->load(); } }