示例#1
0
 /**
  * @covers {className}::{origMethodName}
  * @todo Implement testGetByUsername().
  */
 public function testGetByUsername()
 {
     $user = new TestUser(1, 'joe2083');
     $this->object->add($user);
     $this->assertEquals($user, $this->object->getByUsername('joe2083'));
     $this->setExpectedException('\\Fwk\\Security\\Exceptions\\UserNotFound');
     $this->assertEquals($user, $this->object->getByUsername('Joe2083', false));
 }