Alex\BehatLauncher\Behat\OutputFile::__construct PHP Method

__construct() public method

If no path is given, a temporary file will be created on first write.
public __construct ( string $path = null, $id = null )
$path string an absolute path
    public function __construct($path = null, $id = null)
    {
        if (null === $path) {
            $path = tempnam(sys_get_temp_dir(), 'bl_');
            if (file_exists($path)) {
                unlink($path);
            }
        }
        $this->path = $path;
        $this->id = $id;
    }