/** * Test input POST */ public function testPost() { // generate server data $this->fakeServerData(); // check post params $this->assertEquals(CCIn::post('hello'), 'world'); // check post param default $this->assertEquals(CCIn::post('not_existing', 'test'), 'test'); // check post param has $this->assertFalse(CCIn::has_post('not_existing')); // check post param has $this->assertTrue(CCIn::has_post('hello')); }