for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OckCyp\CoversValidator\Loader;
class FileLoader
{
/**
* Include a file
*
* @param string $filename
*/
public static function loadFile($filename)
if (class_exists(\PHPUnit\Util\Fileloader::class)) {
// PHPUnit 6.x
\PHPUnit\Util\Fileloader::checkAndLoad($filename);
} else {
// @codeCoverageIgnoreStart
// PHPUnit 7.x+
\PHPUnit\Util\FileLoader::checkAndLoad($filename);
// @codeCoverageIgnoreEnd
}