getConfiguration()->setUseCachedMetas(false); $builder->build( __DIR__ . '/input', __DIR__ . '/output' ); $expected = 'Test a reference in a directive A file.'; $contents = file_get_contents(__DIR__ . '/output/index.html'); assert($contents !== false); self::assertStringContainsString( $expected, $contents ); } }