src/Common/Factory/HttpRequest.php
public function asUser($iUserId)
    {
        return $this
            ->setHeader(Testing::TEST_HEADER_NAME, Testing::TEST_HEADER_VALUE)
            ->setHeader(Testing::TEST_HEADER_USER_NAME, $iUserId);
    }
public function asUser($iUserId)
    {
        return $this
            ->setHeader(Testing::TEST_HEADER_NAME, Testing::TEST_HEADER_VALUE)
            ->setHeader(Testing::TEST_HEADER_USER_NAME, $iUserId);
    }
public function asUser ( $ iUserId ) { return $ this -> setHeader ( Testing :: TEST_HEADER_NAME , Testing :: TEST_HEADER_VALUE ) -> setHeader ( Testing :: TEST_HEADER_USER_NAME , $ iUserId ) ; }
Set the required headers for imitating a user

@param integer $iUserId the user to imitate

@return $this
Set the required headers for imitating a user