/** * testAdherentFetchLogin * * @param Adherent $localobject Member instance * @return Adherent * * @depends testAdherentFetch * The depends says test is run only if previous is ok */ public function testAdherentFetchLogin(Adherent $localobject) { global $conf, $user, $langs, $db; $conf = $this->savconf; $user = $this->savuser; $langs = $this->savlangs; $db = $this->savdb; $newobject = new Adherent($this->savdb); $result = $newobject->fetch_login($localobject->login); $this->assertEquals($newobject, $localobject); return $localobject; }