<commit_before><?php

namespace Plivo\Tests;



use PHPUnit\Framework\TestCase;
use Plivo\Authentication\BasicAuth;
use Plivo\RestClient;
use Plivo\BaseClient;

/**
 * Class BaseTestCase
 * @package Plivo\Tests
 */
class BaseTestCase extends TestCase
{
    /**
     * @var RestClient
     */
    protected $client;
    /**
     * @var TestClient
     */
    protected $testClient = null;

    /**
     *
     */
    protected function setUp()
    {
        $this->client = new RestClient("MAXXXXXXXXXXXXXXXXXX", "<KEY>");
        $this->testClient = new TestClient(null,
            new BasicAuth("MAXXXXXXXXXXXXXXXXXX", "<KEY>"));
        $this->client->client->setHttpClientHandler($this->testClient);
    }

    /**
     * @param $request
     */
    public function assertRequest($request) {
        $this->testClient->assertRequest($request);
        self::assertTrue(true);
    }

    /**
     * @param $response
     */
    public function mock($response)
    {
        $this->testClient->mock($response);
    }

    /**
     * @param $response
     */
    public function expectPlivoException($exception)
    {
        if (version_compare(phpversion(), '7.0.0', '<')) {
            self::setExpectedException($exception);
        } else {
            // self::expectException($exception);
            self::setExpectedException($exception);
        }

    }
}
<commit_msg>SSML Support - Fixed Test cases issues<commit_after><?php

namespace Plivo\Tests;



use PHPUnit\Framework\TestCase;
use Plivo\Authentication\BasicAuth;
use Plivo\RestClient;
use Plivo\BaseClient;

/**
 * Class BaseTestCase
 * @package Plivo\Tests
 */
class BaseTestCase extends TestCase
{
    /**
     * @var RestClient
     */
    protected $client;
    /**
     * @var TestClient
     */
    protected $testClient = null;

    /**
     *
     */
    protected function setUp()
    {
        $this->client = new RestClient("MAXXXXXXXXXXXXXXXXXX", "<KEY>");
        $this->testClient = new TestClient(null,
            new BasicAuth("<KEY>", "<KEY>"));
        $this->client->client->setHttpClientHandler($this->testClient);
    }

    /**
     * @param $request
     */
    public function assertRequest($request) {
        $this->testClient->assertRequest($request);
        self::assertTrue(true);
    }

    /**
     * @param $response
     */
    public function mock($response)
    {
        $this->testClient->mock($response);
    }

    /**
     * @param $response
     */
    public function expectPlivoException($exception)
    {
        if (version_compare(phpversion(), '7.0.0', '<')) {
            self::setExpectedException($exception);
        } else {
            self::expectException($exception);
        }

    }
}

{'fraction_non_alphanumeric': 0.14696132596685083, 'fraction_numerical': 0.0022099447513812156, 'mean_word_length': 2.3202933985330074, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 3, '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': '6164239', 'n_tokens_mistral': 793, 'n_tokens_neox': 781, 'n_words': 138}