<commit_before><?php

require_once __DIR__ . "/../src/api/Client.php";

// backward compatibility for php 5.5 and low (with phpunit < v.6)
if (!class_exists('\PHPUnit\Framework\TestCase') && class_exists('\PHPUnit_Framework_TestCase')) {
    class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');
}

class ClientTest extends \PHPUnit_Framework_TestCase
{

    /**
     * @var string
     */
    const END_POINT = "https://private-f8e3e3-simpleapitest.apiary-mock.com/test";

    /**
     * @var array
     */
    private $config = array(
        "time_out"         => 10,
        "connect_time_out" => 5,
        "end_point"        => self::END_POINT,
        "method"           => "GET",
        "content_type"     => "application/json"
    );

    /**
     * get method test
     */
    public function testGetExecute()
    {
        $simpleApi = new \SimpleApi\Client($this->config);
        $json = $simpleApi
            ->send();

        $this->assertArrayHasKey("get", $json);
        $this->assertEquals($json["get"], "OK");<commit_msg>edit test case<commit_after><?php

require_once __DIR__ . "/../src/api/Client.php";

// backward compatibility for php 5.5 and low (with phpunit < v.6)
if (!class_exists('\PHPUnit\Framework\TestCase') &&
    class_exists('\PHPUnit_Framework_TestCase')) {
    class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');
}

class ClientTest extends \PHPUnit\Framework\TestCase
{

    /**
     * @var string
     */
    const END_POINT = "https://private-f8e3e3-simpleapitest.apiary-mock.com/test";

    /**
     * @var array
     */
    private $config = array(
        "time_out"         => 10,
        "connect_time_out" => 5,
        "end_point"        => self::END_POINT,
        "method"           => "GET",
        "content_type"     => "application/json"
    );

    /**
     * get method test
     */
    public function testGetExecute()
    {
        $simpleApi = new \SimpleApi\Client($this->config);
        $json = $simpleApi
            ->send();

        $this->assertArrayHasKey("get", $json);
        $this->assertEquals($json["get"], "OK");
{'fraction_non_alphanumeric': 0.16018735362997658, 'fraction_numerical': 0.008430913348946136, 'mean_word_length': 2.363779527559055, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, 'https://': 2, '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': '4079845', 'n_tokens_mistral': 677, 'n_tokens_neox': 664, 'n_words': 119}