/**
  * @covers Veles\Auth\Strategies\AbstractAuthStrategy::setError
  */
 public function testSetError()
 {
     $expected = 8;
     $this->object->setError(GuestStrategy::ERR_NOT_VALID_LOGIN);
     $msg = 'AbstractAuthStrategy::setErrors() wrong behavior!';
     $this->assertAttributeSame($expected, 'errors', $this->object, $msg);
     $expected = 40;
     $this->object->setError(GuestStrategy::ERR_NOT_VALID_HASH);
     $msg = 'AbstractAuthStrategy::setErrors() wrong behavior!';
     $this->assertAttributeSame($expected, 'errors', $this->object, $msg);
 }
 /**
  * @covers Veles\Auth\Strategies\GuestStrategy::identify
  */
 public function testIdentify()
 {
     $expected = false;
     $result = $this->object->identify();
     $msg = 'GuestStrategy::identify() returns wrong result!';
     $this->assertSame($expected, $result, $msg);
     $expected = ['group' => UsrGroup::GUEST];
     $result = ['group' => ''];
     $this->object->getUser()->getProperties($result);
     $msg = 'Wrong GuestStrategy::identify() behavior!';
     $this->assertSame($expected, $result, $msg);
 }