public function test_is_presence_should_return_true() { //any have variables $fixture = "test"; $result = is_presence($fixture); $this->assertEquals($result, true); //when array $fixture = array("hoge" => "piyo"); $result = is_presence($fixture); $this->assertEquals($result, true); }
function is_blank($var) { return !is_presence($var); }