access->countUsersByLoginName('nothere'); return $result === 0; } /** * tests countUsersByLoginName where it is expected that the login name does * match one LDAP user * * @return bool */ protected function case2() { $result = $this->access->countUsersByLoginName('alice'); return $result === 1; } } /** @var string $host */ /** @var int $port */ /** @var string $adn */ /** @var string $apwd */ /** @var string $bdn */ $test = new IntegrationTestCountUsersByLoginName($host, $port, $adn, $apwd, $bdn); $test->init(); $test->run();