<commit_before><?php

namespace SEOstatsTest\Services\Google;

use SEOstats\Services\Sitrix;

class GoogleSearchTest extends AbstractGoogleTestCase
{
    protected $standardVersionFile = "google-search-%s.html";
    protected $standardVersionSubFile = "google-search-%s-%s-%s.html";
    protected $called = 0;

    /**
     * @group google
     * @group google-search
     * @group live
     */
    public function testGetPageRank()
    {
        $result = $this->SUT->getPageRank();

        $this->assertInternalType('string', $result);
        $this->assertGreaterThanOrEqual(0, $result);
    }

    /**
     * @dataProvider providerTestGoogleCurl
     * @group google
     * @group google-search
     * @group live
     */
    public function testGoogleCurl($args, $status)
    {
        $result = $this->helperMakeAccessable($this->SUT, 'gCurl', $args);

        if ($status) {
            $this->assertInternalType('string', $result);<commit_msg>fix access error in test<commit_after><?php

namespace SEOstatsTest\Services\Google;

use SEOstats\Services\Sitrix;

class GoogleSearchTest extends AbstractGoogleTestCase
{
    protected $standardVersionFile = "google-search-%s.html";
    protected $standardVersionSubFile = "google-search-%s-%s-%s.html";
    public $called = 0;

    /**
     * @group google
     * @group google-search
     * @group live
     */
    public function testGetPageRank()
    {
        $result = $this->SUT->getPageRank();

        $this->assertInternalType('string', $result);
        $this->assertGreaterThanOrEqual(0, $result);
    }

    /**
     * @dataProvider providerTestGoogleCurl
     * @group google
     * @group google-search
     * @group live
     */
    public function testGoogleCurl($args, $status)
    {
        $result = $this->helperMakeAccessable($this->SUT, 'gCurl', $args);

        if ($status) {
            $this->assertInternalType('string', $result);
{'fraction_non_alphanumeric': 0.13702928870292888, 'fraction_numerical': 0.0020920502092050207, 'mean_word_length': 2.912065439672802, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '2648883', 'n_tokens_mistral': 573, 'n_tokens_neox': 562, 'n_words': 109}