Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
f2b9d1e2
Commit
f2b9d1e2
authored
Oct 10, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added request tests.
parent
c1e68717
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
laravel/request.php
+1
-1
tests/Cases/RequestTest.php
+12
-0
No files found.
laravel/request.php
View file @
f2b9d1e2
...
...
@@ -42,7 +42,7 @@ class Request {
{
$uri
=
$_SERVER
[
'PATH_INFO'
];
}
if
(
isset
(
$_SERVER
[
'REQUEST_URI'
]))
else
if
(
isset
(
$_SERVER
[
'REQUEST_URI'
]))
{
$uri
=
parse_url
(
$_SERVER
[
'REQUEST_URI'
],
PHP_URL_PATH
);
...
...
tests/Cases/RequestTest.php
0 → 100644
View file @
f2b9d1e2
<?php
class
RequestTest
extends
PHPUnit_Framework_TestCase
{
public
function
test_uri_method_returns_path_info_if_set
()
{
$_SERVER
[
'PATH_INFO'
]
=
'something'
;
$this
->
assertEquals
(
'something'
,
Laravel\Request
::
uri
());
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment