public static instance ( ) : |
||
return | The static driver. |
public static function instance()
{
if (!self::$instance) {
self::$instance = new self();
}
return self::$instance;
}
/** * Turn on or off the use of ANSI colored output. * * Pass `null` to detect automatically. * * @param bool|null $useColor True to use color. */ function setUseColor($useColor) { $facade = PhoFacadeDriver::instance(); $facade->assertionRenderer->setUseColor($useColor); $facade->differenceEngine->setUseColor($useColor); }