<commit_before><?php

class TestCore extends PHPUnit_Framework_TestCase
{
	/**
	 * Setup the test
	 */
	public function setUp()
	{
		Bundle::start('oneauth');

		Config::set('application.url', 'http://localhost');
		Config::set('oneauth::urls', array(
			'registration' => 'auth/register',
			'login'        => 'auth/login',
			'callback'     => 'auth/callback',
			
			'registered'   => 'auth/home',
			'logged_in'    => 'auth/account',
		));
	}

	/**
	 * Test OneAuth\Auth\Core::redirect()
	 *
	 * @test
	 */
	public function testRedirect()
	{
		$output = OneAuth\Auth\Core::redirect('registration');

		$this->assertInstanceOf('Laravel\Redirect', $output);
		$this->assertEquals('http://localhost/auth/register', $output->foundation->headers->get('Location'));

		$output = OneAuth\Auth\Core::redirect('login');

		$this->assertInstanceOf('Laravel\Redirect', $output);
		$this->assertEquals('http://localhost/auth/login', $output->foundation->headers->get('Location'));

		$output = OneAuth\Auth\Core::redirect('callback');

		$this->assertInstanceOf('Laravel\Redirect', $output);
		$this->assertEquals('http://localhost/auth/callback', $output->foundation->headers->get('Location'));

		$output = OneAuth\Auth\Core::redirect('registered');

		$this->assertInstanceOf('Laravel\Redirect', $output);
		$this->assertEquals('http://localhost/auth/home', $output->foundation->headers->get('Location'));

		$output = OneAuth\Auth\Core::redirect('logged_in');

		$this->assertInstanceOf('Laravel\Redirect', $output);
		$this->assertEquals('http://localhost/auth/account', $output->foundation->headers->get('Location'));
	}
}<commit_msg>Set application.index value to '' for consistency<commit_after><?php

class TestCore extends PHPUnit_Framework_TestCase
{
	/**
	 * Setup the test
	 */
	public function setUp()
	{
		Bundle::start('oneauth');

		Config::set('application.url', 'http://localhost');
		Config::set('application.index', '');
		Config::set('oneauth::urls', array(
			'registration' => 'auth/register',
			'login'        => 'auth/login',
			'callback'     => 'auth/callback',
			
			'registered'   => 'auth/home',
			'logged_in'    => 'auth/account',
		));
	}

	/**
	 * Test OneAuth\Auth\Core::redirect()
	 *
	 * @test
	 */
	public function testRedirect()
	{
		$output = OneAuth\Auth\Core::redirect('registration');

		$this->assertInstanceOf('Laravel\Redirect', $output);
		$this->assertEquals('http://localhost/auth/register', $output->foundation->headers->get('Location'));

		$output = OneAuth\Auth\Core::redirect('login');

		$this->assertInstanceOf('Laravel\Redirect', $output);
		$this->assertEquals('http://localhost/auth/login', $output->foundation->headers->get('Location'));

		$output = OneAuth\Auth\Core::redirect('callback');

		$this->assertInstanceOf('Laravel\Redirect', $output);
		$this->assertEquals('http://localhost/auth/callback', $output->foundation->headers->get('Location'));

		$output = OneAuth\Auth\Core::redirect('registered');

		$this->assertInstanceOf('Laravel\Redirect', $output);
		$this->assertEquals('http://localhost/auth/home', $output->foundation->headers->get('Location'));

		$output = OneAuth\Auth\Core::redirect('logged_in');

		$this->assertInstanceOf('Laravel\Redirect', $output);
		$this->assertEquals('http://localhost/auth/account', $output->foundation->headers->get('Location'));
	}
}
{'fraction_non_alphanumeric': 0.21017964071856288, 'fraction_numerical': 0.0, 'mean_word_length': 5.152854511970534, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 63, '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': '1427989', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1007, 'n_words': 130}