<commit_before><?php

class TestMemory extends PHPUnit_Framework_TestCase 
{
	/**
	 * Setup: Start Hybrid Bundle
	 *
	 * @return  void
	 */
	public function setup()
	{
		Bundle::start('hybrid');

		$mock = Hybrid\Memory::make('runtime.mock');

		$mock->put('foo.bar', 'hello world');
		$mock->put('username', 'laravel');
	}

	/**
	 * Test that Hybrid\Memory::make() return an instanceof Hybrid\Curl.
	 * 
	 * @test
	 * @return  void
	 */
	public function testMake()
	{
		$this->assertInstanceOf('Hybrid\Memory\Runtime', Hybrid\Memory::make('runtime')); 
	}

	/**
	 * Test that Hybrid\Memory::make() return exception when given invalid driver
	 *
	 * @test
	 * @expectedException Hybrid\Exception
	 */
	public function testMakeExpectedException()
	{
		Hybrid\Memory::make('orm');
	}

	public function testGetMock()
	{
		$mock = Hybrid\Memory::make('runtime.mock');
		$this->assertEquals(array('bar' => 'hello world'), $mock->get('foo'));
		$this->assertEquals('hello world', $mock->get('foo.bar'));
		$this->assertEquals('laravel', $mock->get('username'));
	}
}<commit_msg>Unit test docblock<commit_after><?php

class TestMemory extends PHPUnit_Framework_TestCase 
{
	/**
	 * Setup: Start Hybrid Bundle
	 *
	 * @return  void
	 */
	public function setup()
	{
		Bundle::start('hybrid');

		$mock = Hybrid\Memory::make('runtime.mock');

		$mock->put('foo.bar', 'hello world');
		$mock->put('username', 'laravel');
	}

	/**
	 * Test that Hybrid\Memory::make() return an instanceof Hybrid\Curl.
	 * 
	 * @test
	 * @return  void
	 */
	public function testMake()
	{
		$this->assertInstanceOf('Hybrid\Memory\Runtime', Hybrid\Memory::make('runtime')); 
	}

	/**
	 * Test that Hybrid\Memory::make() return exception when given invalid driver
	 *
	 * @test
	 * @expectedException Hybrid\Exception
	 */
	public function testMakeExpectedException()
	{
		Hybrid\Memory::make('orm');
	}

	/**
	 * Test that Hybrid\Memory return valid values
	 *
	 * @test
	 */
	public function testGetMock()
	{
		$mock = Hybrid\Memory::make('runtime.mock');
		$this->assertEquals(array('bar' => 'hello world'), $mock->get('foo'));
		$this->assertEquals('hello world', $mock->get('foo.bar'));
		$this->assertEquals('laravel', $mock->get('username'));
	}
}
{'fraction_non_alphanumeric': 0.1855020261143629, 'fraction_numerical': 0.0, 'mean_word_length': 4.203747072599532, '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': '1838691', 'n_tokens_mistral': 772, 'n_tokens_neox': 685, 'n_words': 143}