Because the sonatablockextension (which we mock) extends Twig_Extension. And I got errors from phpunit when trying to mock that class without having a class named Twig_Extension