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