您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

RemoteUserTest.php 673B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Test for Postfixadmin - remote vacation stuff
  4. *
  5. * @package tests
  6. */
  7. require_once('RemoteTest.php');
  8. class RemoteUserTest extends RemoteTest {
  9. public function testChangePassword() {
  10. try {
  11. $this->assertTrue($this->user->login($this->username, $this->password));
  12. $this->assertTrue($this->user->changePassword($this->password, 'foobar'));
  13. $this->assertTrue($this->user->login($this->username, 'foobar'));
  14. } catch (Exception $e) {
  15. var_dump($this->xmlrpc_client->getHttpClient()->getLastResponse()->getBody());
  16. }
  17. }
  18. }
  19. /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */