assertTrue( in_array( 'G_Error', $methods ), 'seems like this function is outside this class' ); } } /** * @covers G_Error::errorMessage * @todo Implement testerrorMessage(). */ public function testerrorMessage() { if (class_exists('G_Error')) { $methods = get_class_methods( 'G_Error'); $this->assertTrue( in_array( 'errorMessage', $methods ), 'seems like this function is outside this class' ); } } }