Commit 560b1362 authored by Taylor Otwell's avatar Taylor Otwell

added request format test.

parent c0c103a6
......@@ -31,6 +31,12 @@ class RequestTest extends PHPUnit_Framework_TestCase {
$this->assertEquals('PUT', Laravel\Request::method());
}
public function test_format_method_returns_extension()
{
$this->assertEquals('html', Laravel\Request::format('user'));
$this->assertEquals('json', Laravel\Request::format('user.json'));
}
public function test_server_method_returns_from_the_server_array()
{
$_SERVER = array('TEST' => 'something', 'USER' => array('NAME' => 'taylor'));
......
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