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
				
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			493 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			493 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| namespace mfmdevsystem\socket\Mock;
 | |
| use mfmdevsystem\socket\AbstractConnectionDecorator;
 | |
| 
 | |
| class ConnectionDecorator extends AbstractConnectionDecorator {
 | |
|     public $last = array(
 | |
|         'write' => ''
 | |
|       , 'end'   => false
 | |
|     );
 | |
| 
 | |
|     public function send($data) {
 | |
|         $this->last[__FUNCTION__] = $data;
 | |
| 
 | |
|         $this->getConnection()->send($data);
 | |
|     }
 | |
| 
 | |
|     public function close() {
 | |
|         $this->last[__FUNCTION__] = true;
 | |
| 
 | |
|         $this->getConnection()->close();
 | |
|     }
 | |
| }
 |