Пример #1
0
 /**
  * @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();
 }
Пример #2
0
 public function testGetMailMethod()
 {
     $this->assertEquals($this->member->getEmail(), self::USER_EMAIL);
 }