Files
piratepoet/.circleci/fake-sendmail.php
Jan Jakeš 54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00

19 lines
415 B
PHP
Executable File

#!/usr/local/bin/php
<?php
$path = "/tmp/fake-mailer";
if (!file_exists($path)) {
mkdir($path);
}
$filename = $path . '/mailpoet-' . microtime(true) . '.txt';
$fileHandle = fopen($filename, "w");
// phpcs:ignore Squiz.PHP.DiscouragedFunctions
$callArguments = print_r($argv, true) . "\n";
fwrite($fileHandle, $callArguments);
while ($line = fgets(STDIN)) {
fwrite($fileHandle, $line);
}
fclose($fileHandle);