/** * @param Member $member */ public function save(Member $member) { $statement = $this->pdo->prepare('INSERT INTO members (identifier, name, email) VALUES (:identifier, :name, :email)'); $statement->bindValue('identifier', $member->getIdentifier()->getValue()); $statement->bindValue('name', $member->getName()); $statement->bindValue('email', $member->getEmail()); $statement->execute(); }
public function testGetMailMethod() { $this->assertEquals($this->member->getEmail(), self::USER_EMAIL); }