I figured out that the namespace is not highlighted after the extends word for class definition, for example:
class SQLite extends \test\database\Adapter {
public function runTruncate(\test\database\Query $query)
{}
Same goes to the parameters in method definition. In above code, the “\test\database” is not treated as a namespace