示例#1
0
 public function testAuth()
 {
     $server = new Node($this->stream);
     try {
         $ok = $server->auth('test');
         $this->assertNotNull($ok);
     } catch (CommandException $e) {
         $this->assertEquals('ERR Client sent AUTH, but no password is set', $e->getMessage());
     }
 }