/** */ public function testGetById() { $user = new TestUser(1, 'joe2083'); $this->object->add($user); $this->assertEquals($user, $this->object->getById(1)); $this->setExpectedException('\\Fwk\\Security\\Exceptions\\UserNotFound'); $this->object->getById(2); }