'bar'], iterator_to_array($source)); } public function test_invalid_yaml_throws_exception(): void { $this->expectException(InvalidYaml::class); $this->expectExceptionCode(1629990223); $this->expectExceptionMessage('The given value is not a valid YAML entry.'); new YamlSource('@'); } public function test_invalid_yaml_type_throws_exception(): void { $this->expectException(SourceNotIterable::class); $this->expectExceptionCode(1566307291); $this->expectExceptionMessage('The configuration is not an iterable but of type `string`.'); new YamlSource('foo'); } }