/** * Will return null when type does not exist or is not a string * * @depends testGet * @return null */ public function testGetTypeDoesNotExist() { $this->assertFalse($this->input->isValidParamType('does-not-exist')); /* the default return value when not found is null */ $this->assertNull($this->input->get('does-not-exist', 'param1')); $this->assertEquals('custom default', $this->input->get('does-not-exist', 'param1', 'custom default'), 'you can supply your own custom default'); $this->assertNull($this->input->get(array(1, 2, 3), 'param1')); $this->assertNull($this->input->get(new StdClass(), 'param1')); $this->assertNull($this->input->get('', 'param1')); }