Commit 6081baaa authored by Taylor Otwell's avatar Taylor Otwell

git rid of uri test case and remove information from config.

parent 527340d7
...@@ -40,7 +40,7 @@ return array( ...@@ -40,7 +40,7 @@ return array(
| |
*/ */
'key' => 'SomethingElse', 'key' => '',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
......
...@@ -16,7 +16,7 @@ return array( ...@@ -16,7 +16,7 @@ return array(
| |
*/ */
'driver' => 'apc', 'driver' => '',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
......
<?php
class UriTest extends PHPUnit_Framework_TestCase {
/**
* @dataProvider uri_provider
*/
public function test_get_method_returns_correct_uri($uri, $expectation)
{
$uri = new Laravel\URI(array('REQUEST_URI' => $uri));
$this->assertEquals($uri->get(), $expectation);
}
public function uri_provider()
{
return array(
array('/index.php/', '/'),
array('/index.php//', '/'),
array('', '/'),
array('/', '/'),
array('/index.php/user', 'user'),
array('/index.php/user/something', 'user/something'),
array('/user', 'user'),
array('/user/something', 'user/something'),
array('http://localhost/index.php/user', 'user'),
array('http://localhost/user', 'user'),
array('http://localhost/index.php/', '/'),
);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment