If test is documentation, maybe you should add an assertion about type of `$report->getSourceDir()`.