<commit_before><?php
namespace Artax\Http;

class ClientHelper extends Client {
    public function getContextOptions() {
        return $this->contextOptions;
    }
}

/**
 * Generated by PHPUnit_SkeletonGenerator on 2012-07-19 at 11:42:18.
 */
class ClientTest extends \PHPUnit_Framework_TestCase {
    /**
     * @var ClientHelper
     */
    protected $client;

    protected function setUp() {
        $this->client = new ClientHelper;
    }

    /**
     * @covers Artax\Http\Client::setMaxRedirects
     */
    public function testSetMaxRedirects() {
        $this->client->setMaxRedirects(0);

        $options = $this->client->getContextOptions();

        $this->assertArrayHasKey('http', $options);
        $this->assertArrayHasKey('max_redirects', $options['http']);

        $this->assertEquals(0, $options['http']['max_redirects']);


        $this->client->setMaxRedirects(20);

        $options = $this->client->getContextOptions();

        $this->assertArrayHasKey('http', $options);
        $this->assertArrayHasKey('max_redirects', $options['http']);

        $this->assertEquals(20, $options['http']['max_redirects']);
    }

    /**
     * @covers Artax\Http\Client::send
     */
    public function testSend() {
        $this->client->setMaxRedirects(0);

        $request = new StdRequest('http://cs.byu.edu/', '1.1', 'GET', array());

        $this->client->send($request);
    }
}<commit_msg>temporarily disabled HTTP Client::send test<commit_after><?php
namespace Artax\Http;

class ClientHelper extends Client {
    public function getContextOptions() {
        return $this->contextOptions;
    }
}

/**
 * Generated by PHPUnit_SkeletonGenerator on 2012-07-19 at 11:42:18.
 */
class ClientTest extends \PHPUnit_Framework_TestCase {
    /**
     * @var ClientHelper
     */
    protected $client;

    protected function setUp() {
        $this->client = new ClientHelper;
    }

    /**
     * @covers Artax\Http\Client::setMaxRedirects
     */
    public function testSetMaxRedirects() {
        $this->client->setMaxRedirects(0);

        $options = $this->client->getContextOptions();

        $this->assertArrayHasKey('http', $options);
        $this->assertArrayHasKey('max_redirects', $options['http']);

        $this->assertEquals(0, $options['http']['max_redirects']);


        $this->client->setMaxRedirects(20);

        $options = $this->client->getContextOptions();

        $this->assertArrayHasKey('http', $options);
        $this->assertArrayHasKey('max_redirects', $options['http']);

        $this->assertEquals(20, $options['http']['max_redirects']);
    }

    /**
     * @covers Artax\Http\Client::send
     */
    public function testSend() {
        $this->markTestSkipped('lol at connecting to byu.edu in a test case :)');
        /*
        $this->client->setMaxRedirects(0);

        $request = new StdRequest('http://cs.byu.edu/', '1.1', 'GET', array());

        $this->client->send($request);
        */
    }
}
{'fraction_non_alphanumeric': 0.16397306397306396, 'fraction_numerical': 0.015488215488215488, 'mean_word_length': 2.945551128818061, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 44, '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': '2958002', 'n_tokens_mistral': 926, 'n_tokens_neox': 877, 'n_words': 151}