['pipe', 'r'], 1 => ['pipe', 'w'], 2 => ['pipe', 'w']], $pipes); self::assertIsResource($process); fclose($pipes[0]); $output = stream_get_contents($pipes[1]); $errors = stream_get_contents($pipes[2]); fclose($pipes[1]); fclose($pipes[2]); self::assertSame(0, proc_close($process), $output . $errors); self::assertSame('', $errors); self::assertMatchesRegularExpression('/TOTAL [0-9]+ feedback setup checks passed/', $output); } }