示例#1
0
 public function testAuthenticationMethodDefaultsToLocal()
 {
     $person = new Person();
     $person->setFirstname('First');
     $person->setLastname('Last');
     $person->setEmail('test@localhost');
     $person->setUsername('test');
     $person->validate();
     $this->assertEquals('local', $person->getAuthenticationMethod());
 }