芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/joolsmen.com/chat/vendor/cboden/ratchet/tests/unit/Server/IoConnectionTest.php
sock = $this->getMock('\\React\\Socket\\ConnectionInterface'); $this->conn = new IoConnection($this->sock); } public function testCloseBubbles() { $this->sock->expects($this->once())->method('end'); $this->conn->close(); } public function testSendBubbles() { $msg = '6 hour rides are productive'; $this->sock->expects($this->once())->method('write')->with($msg); $this->conn->send($msg); } public function testSendReturnsSelf() { $this->assertSame($this->conn, $this->conn->send('fluent interface')); } }