/** * @depends test_newUser */ public function test_getUserFromEmail($User) { $Base = new Base(); $this->assertInstanceOf("Railpage\\Users\\User", $Base->getUserFromEmail($User->contact_email)); $this->setExpectedException("Exception", sprintf("No user found with an email address of %s and logging in via %s", "*****@*****.**", "railpage")); $Base->getUserFromEmail("*****@*****.**", "railpage"); }
public function test_getUserFromEmail() { $Base = new Base(); $this->setExpectedException("Exception", "Can't find user - no email address provided"); $Base->getUserFromEmail(); }