<commit_before><?php
namespace DexBarrett\ClockworkSms\Test;

use DexBarrett\ClockworkSms\Client;
use DexBarrett\ClockworkSms\Commands\Command;
use DexBarrett\ClockworkSms\Commands\CommandFactory;
use DexBarrett\ClockworkSms\Exception\ClockworkSmsException;
use GuzzleHttp\Client as GuzzleClient;
use Mockery;

class ClientTest extends AbstractTest
{
    private $apiKey = '12345';

    protected function getApiKey()
    {
        return $this->apiKey;
    }

    /**
     * @test
     * @expectedException DexBarrett\ClockworkSms\Exception\ClockworkSmsException
    */

    public function fails_if_no_api_key_is_provided()
    {    
        $client = new Client();
    }

    /**
     * @test
    */

    public function overrides_provided_options()
    {
        $client = new Client($this->getApiKey(), ['ssl' => true]);
        $this->assertEquals($client->getOptionValue('ssl'), true);
    }

    /**
     * @test
     * @expectedException DexBarrett\ClockworkSms\Exception\ClockworkSmsException
    */
    public function throws_error_when_trying_to_get_invalid_option()
    {
        $client = new Client($this->getApiKey());
        $client->getOptionValue('foo');
    }

    /**
     * @test
     * @expectedException DexBarrett\ClockworkSms\Exception\ClockworkSmsException
    */
    public function discards_invalid_options_provided()
    {
        $client = new Client($this->getApiKey(), ['log' => true, 'foo' => 'bar']);<commit_msg>Fix exception class path in annotations<commit_after><?php
namespace DexBarrett\ClockworkSms\Test;

use DexBarrett\ClockworkSms\Client;
use DexBarrett\ClockworkSms\Commands\Command;
use DexBarrett\ClockworkSms\Commands\CommandFactory;
use DexBarrett\ClockworkSms\Exception\ClockworkSmsException;
use GuzzleHttp\Client as GuzzleClient;
use Mockery;

class ClientTest extends AbstractTest
{
    private $apiKey = '12345';

    protected function getApiKey()
    {
        return $this->apiKey;
    }

    /**
     * @test
     * @expectedException \DexBarrett\ClockworkSms\Exception\ClockworkSmsException
    */

    public function fails_if_no_api_key_is_provided()
    {    
        $client = new Client();
    }

    /**
     * @test
    */

    public function overrides_provided_options()
    {
        $client = new Client($this->getApiKey(), ['ssl' => true]);
        $this->assertEquals($client->getOptionValue('ssl'), true);
    }

    /**
     * @test
     * @expectedException \DexBarrett\ClockworkSms\Exception\ClockworkSmsException
    */
    public function throws_error_when_trying_to_get_invalid_option()
    {
        $client = new Client($this->getApiKey());
        $client->getOptionValue('foo');
    }

    /**
     * @test
     * @expectedException \DexBarrett\ClockworkSms\Exception\ClockworkSmsException
    */
    public function discards_invalid_options_provided()
    {
        $client = new Client($this->getApiKey(), ['log' => true, 'foo' => 'bar']);
{'fraction_non_alphanumeric': 0.12136752136752137, 'fraction_numerical': 0.003418803418803419, 'mean_word_length': 3.2715328467153286, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '1509108', 'n_tokens_mistral': 934, 'n_tokens_neox': 893, 'n_words': 148}