Skip to content

Commit

Permalink
Merge https://github.com/tomfrompoland/Slim into hotfix-env-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Lockhart committed Sep 5, 2011
2 parents 8f95dd9 + 3302141 commit dc27979
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Http/CookieTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function testNewCookie() {
//Case C
$this->assertEquals($hourFromNow, $c1->getExpires());
//Case D
$this->assertEquals($hourFromNow, $c2->getExpires());
$this->assertGreaterThanOrEqual($hourFromNow, $c2->getExpires());
//Case E
$this->assertEquals('/foo', $c1->getPath());
//Case F
Expand Down
5 changes: 4 additions & 1 deletion tests/Http/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ public function testRequestUriInSubDirectoryWitoutHtaccess(){
public function testStripSlashesIfMagicQuotes() {
$_GET['foo1'] = "bar\'d";
$getData = Slim_Http_Request::stripSlashesIfMagicQuotes($_GET);
$this->assertEquals("bar'd", $getData['foo1']);
if(get_magic_quotes_gpc())
$this->assertEquals("bar'd", $getData['foo1']);
else
$this->assertEquals("bar\'d", $getData['foo1']);
}

/* TEST REQUEST METHODS */
Expand Down

0 comments on commit dc27979

Please sign in to comment.