Lines Matching refs:out
26 protected $out; variable in PHPUnit_Util_Printer
36 * @param mixed $out
40 public function __construct($out = null) argument
42 if ($out !== null) {
43 if (is_string($out)) {
44 if (strpos($out, 'socket://') === 0) {
45 $out = explode(':', str_replace('socket://', '', $out));
47 if (count($out) != 2) {
51 $this->out = fsockopen($out[0], $out[1]);
53 if (strpos($out, 'php://') === false &&
54 !is_dir(dirname($out))) {
55 mkdir(dirname($out), 0777, true);
58 $this->out = fopen($out, 'wt');
61 $this->outTarget = $out;
63 $this->out = $out;
73 if ($this->out && strncmp($this->outTarget, 'php://', 6) !== 0) {
74 fclose($this->out);
87 if ($this->out) {
88 fflush($this->out);
99 if ($this->out) {
100 fwrite($this->out, $buffer);