Skip to content

Commit 6843f2f

Browse files
committed
Added test for post method
1 parent 1dc183c commit 6843f2f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/Unit/Network/RequestTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,15 @@ public function testGetVerb()
103103

104104
$this->assertSame('POST', $request->getVerb());
105105
}
106+
107+
/**
108+
* @covers OpCacheGUI\Network\Request::__construct
109+
* @covers OpCacheGUI\Network\Request::post
110+
*/
111+
public function testPost()
112+
{
113+
$request = new Request([], ['foo' => 'bar'], ['REQUEST_URI' => '']);
114+
115+
$this->assertSame('bar', $request->post('foo'));
116+
}
106117
}

0 commit comments

Comments
 (0)