getConfiguration()->abortOnError(false); $builder->getConfiguration()->silentOnError(); } public function test(): void { $indenter = new Indenter(); foreach (Finder::create()->files()->in($this->targetFile() . '/../expected') as $file) { $target = $this->targetFile($file->getRelativePathname()); self::assertFileExists($target); self::assertEquals(rtrim($file->getContents()), rtrim($indenter->indent($this->getFileContents($target)))); } } protected function getFixturesDirectory(): string { return 'BuilderReferences'; } }