Dependencies
This commit is contained in:
22
aldarien/response/tests/ResponseTest.php
Normal file
22
aldarien/response/tests/ResponseTest.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ResponseTest extends TestCase
|
||||
{
|
||||
protected $value = 'Test';
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
$_GET['test'] = $this->value;
|
||||
$_POST['test'] = $this->value;
|
||||
}
|
||||
public function testGet()
|
||||
{
|
||||
$this->assertEquals($this->value, get('test'));
|
||||
}
|
||||
public function testPost()
|
||||
{
|
||||
$this->assertEquals($this->value, post('test'));
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user