<commit_before><?php

namespace ideasonpurpose;

use TestCase;
use Mockery;
use Brain\Monkey\Functions;
use Brain\Monkey\Actions;

class GoogleAnalyticsGeneralTest extends TestCase
{

    protected function setUp()
    {
        $user = (object) ['user_login' => 'bobby'];
        Functions\when('is_user_logged_in')->justReturn(false);
        Functions\when('wp_get_current_user')->justReturn($user);
        parent::setUp();
    }

    /**<commit_msg>change user mock for hhvm<commit_after><?php

namespace ideasonpurpose;

use TestCase;
use Mockery;
use Brain\Monkey\Functions;
use Brain\Monkey\Actions;

class GoogleAnalyticsGeneralTest extends TestCase
{

    protected function setUp()
    {
        // $user = (object) ['user_login' => 'bobby'];  // doesn't work with hhvm?
        $user = new \stdClass();
        $user->user_login = 'bobby';
        Functions\when('is_user_logged_in')->justReturn(false);
        Functions\when('wp_get_current_user')->justReturn($user);
        parent::setUp();
    }

    /**
{'fraction_non_alphanumeric': 0.13809990205680706, 'fraction_numerical': 0.0, 'mean_word_length': 3.542222222222222, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '218736', 'n_tokens_mistral': 332, 'n_tokens_neox': 318, 'n_words': 63}