public function testHasMethod() { $obj = new TestObject(); $this->assertTrue($obj->hasMethod("hoge")); $this->assertFalse($obj->hasMethod("fuga")); }