/** * @covers Veles\Auth\Strategies\CookieStrategy::setPasswordHash */ public function testSetPasswordHash() { $id = rand(); $expected = uniqid(); $object = new CookieStrategy($id, $expected, new User()); $object->setPasswordHash($expected); $msg = 'CookieStrategy::setPasswordHash() wrong behavior!'; $this->assertAttributeSame($expected, 'password_hash', $object, $msg); }