assertEquals($in, $out); } public function testVarSetWrongType() { $default = 'foo'; $in = 'bar'; $out = PMA_ifSetOr($in, $default, 'boolean'); $this->assertEquals($out, $default); } public function testVarNotSet() { $default = 'foo'; // $in is not set! $out = PMA_ifSetOr($in, $default); $this->assertEquals($out, $default); } public function testVarNotSetNoDefault() { // $in is not set! $out = PMA_ifSetOr($in); $this->assertEquals($out, null); } } ?>