<commit_before><?php

namespace kenjis\OreOrePHP;

/**
 * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2014-01-19 at 12:21:39.
 */
class RequestTest extends \PHPUnit_Framework_TestCase
{

    /**
     * @var Request
     */
    protected $object;

    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
     */
    protected function setUp()
    {
        $get    = ['foo' => 'bar'];
        $post   = ['baz' => 'xyz'];
        $server = ['hoge' => 'geho'];
        $this->object = new Request($get, $post, $server);
    }

    /**
     * Tears down the fixture, for example, closes a network connection.
     * This method is called after a test is executed.
     */
    protected function tearDown()
    {
        
    }

    /**
     * @covers kenjis\OreOrePHP\Request::fromGlobals
     * @todo   Implement testFromGlobals().
     */
    public function testFromGlobals()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
                'This test has not been implemented yet.'
        );
    }

    /**
     * @covers kenjis\OreOrePHP\Request::getGet
     */
    public function testGetGet()
    {
        $test = $this->object->getGet('foo');
        $expected = 'bar';
        $this->assertEquals($expected, $test);
    }

    /**
     * @covers kenjis\OreOrePHP\Request::getPost
     */
    public function testGetPost()
    {
        $test = $this->object->getPost('baz');
        $expected = 'xyz';
        $this->assertEquals($expected, $test);
    }

    /**
     * @covers kenjis\OreOrePHP\Request::getServer
     */
    public function testGetServer()
    {
        $test = $this->object->getServer('hoge');
        $expected = 'geho';
        $this->assertEquals($expected, $test);
    }

}<commit_msg>Add tests<commit_after><?php

namespace kenjis\OreOrePHP;

/**
 * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2014-01-19 at 12:21:39.
 */
class RequestTest extends \PHPUnit_Framework_TestCase
{

    /**
     * @var Request
     */
    protected $object;

    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
     */
    protected function setUp()
    {
        $get    = ['foo'  => 'bar'];
        $post   = ['baz'  => 'xyz'];
        $server = ['hoge' => 'geho'];
        $this->object = new Request($get, $post, $server);
    }

    /**
     * Tears down the fixture, for example, closes a network connection.
     * This method is called after a test is executed.
     */
    protected function tearDown()
    {
        
    }

    /**
     * @covers kenjis\OreOrePHP\Request::fromGlobals
     * @todo   Implement testFromGlobals().
     */
    public function testFromGlobals()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
                'This test has not been implemented yet.'
        );
    }

    /**
     * @covers kenjis\OreOrePHP\Request::getGet
     */
    public function testGetGet_Key_Exists()
    {
        $test = $this->object->getGet('foo');
        $expected = 'bar';
        $this->assertEquals($expected, $test);
    }
    /**
     * @covers kenjis\OreOrePHP\Request::getGet
     */
    public function testGetGet_Key_Not_Exists()
    {
        $test = $this->object->getGet('notexists');
        $expected = null;
        $this->assertEquals($expected, $test);
    }
    
    /**
     * @covers kenjis\OreOrePHP\Request::getGet
     */
    public function testGetGet_All()
    {
        $test = $this->object->getGet();
        $expected = ['foo'  => 'bar'];
        $this->assertEquals($expected, $test);
    }

    /**
     * @covers kenjis\OreOrePHP\Request::getPost
     */
    public function testGetPost_Key_Exists()
    {
        $test = $this->object->getPost('baz');
        $expected = 'xyz';
        $this->assertEquals($expected, $test);
    }
    
    /**
     * @covers kenjis\OreOrePHP\Request::getPost
     */
    public function testGetPost_Key_Not_Exists()
    {
        $test = $this->object->getPost('notexists');
        $expected = null;
        $this->assertEquals($expected, $test);
    }
    /**
     * @covers kenjis\OreOrePHP\Request::getPost
     */
    public function testGetPost_All()
    {
        $test = $this->object->getPost();
        $expected = ['baz'  => 'xyz'];
        $this->assertEquals($expected, $test);
    }

    /**
     * @covers kenjis\OreOrePHP\Request::getServer
     */
    public function testGetServer_Key_Exists()
    {
        $test = $this->object->getServer('hoge');
        $expected = 'geho';
        $this->assertEquals($expected, $test);
    }
    
    /**
     * @covers kenjis\OreOrePHP\Request::getServer
     */
    public function testGetServer_Key_Not_Exists()
    {
        $test = $this->object->getServer('notexists');
        $expected = null;
        $this->assertEquals($expected, $test);
    }
    
    /**
     * @covers kenjis\OreOrePHP\Request::getServer
     */
    public function testGetServer_Key_All()
    {
        $test = $this->object->getServer();
        $expected = ['hoge' => 'geho'];
        $this->assertEquals($expected, $test);
    }
}
{'fraction_non_alphanumeric': 0.1474724439376663, 'fraction_numerical': 0.006461421512732801, 'mean_word_length': 2.1234421364985163, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 52, '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': '5493367', 'n_tokens_mistral': 1717, 'n_tokens_neox': 1665, 'n_words': 340}