public function testStats() { $this->socket->expects($this->any())->method('read')->will($this->returnValue('POOLS:')); $result = $this->quahog->stats(); $this->assertStringStartsWith('POOLS:', $result); }