instance() public static method

Get the static instance of this driver.
public static instance ( ) : FacadeDriver
return Eloquent\Phony\Facade\FacadeDriver The static driver.
Example #1
0
/**
 * 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 = PhpunitFacadeDriver::instance();
    $facade->assertionRenderer->setUseColor($useColor);
    $facade->differenceEngine->setUseColor($useColor);
}
Example #2
0
 /**
  * Get the facade driver.
  *
  * @return FacadeDriver The facade driver.
  */
 protected static function driver()
 {
     return PhpunitFacadeDriver::instance();
 }