Some checks are pending
CI / PHPUnit (highest, 5.4) (push) Waiting to run
CI / PHPUnit (highest, 5.5) (push) Waiting to run
CI / PHPUnit (highest, 5.6) (push) Waiting to run
CI / PHPUnit (highest, 7.0) (push) Waiting to run
CI / PHPUnit (highest, 7.1) (push) Waiting to run
CI / PHPUnit (highest, 7.2) (push) Waiting to run
CI / PHPUnit (highest, 7.3) (push) Waiting to run
CI / PHPUnit (highest, 7.4) (push) Waiting to run
CI / PHPUnit (lowest, 5.4) (push) Waiting to run
21 lines
425 B
PHP
21 lines
425 B
PHP
<?php
|
|
namespace mfmdevsystem\socket\Mock;
|
|
use mfmdevsystem\socket\ConnectionInterface;
|
|
|
|
class Connection implements ConnectionInterface {
|
|
public $last = array(
|
|
'send' => ''
|
|
, 'close' => false
|
|
);
|
|
|
|
public $remoteAddress = '127.0.0.1';
|
|
|
|
public function send($data) {
|
|
$this->last[__FUNCTION__] = $data;
|
|
}
|
|
|
|
public function close() {
|
|
$this->last[__FUNCTION__] = true;
|
|
}
|
|
}
|