12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- trait Mail {
-
-
-
- private $fakeSmtpServerPid;
-
- public function killDummyMailServer() {
- if (!$this->fakeSmtpServerPid) {
- return;
- }
- exec("kill " . $this->fakeSmtpServerPid);
- $this->invokingTheCommand('config:system:delete mail_smtpport');
- }
-
- public function dummyMailServerIsListening() {
-
-
- $this->invokingTheCommand('config:system:set mail_smtpport --value=2525 --type integer');
- $this->fakeSmtpServerPid = exec("php features/bootstrap/FakeSMTPHelper.php >/dev/null 2>&1 & echo $!");
- }
- }
|