minkphp / MinkBundle

Mink library integration bundle for Symfony2
MIT License
60 stars 18 forks source link

Changes getKernel to be a static function #59

Closed kimu closed 10 years ago

kimu commented 10 years ago

MinkTestCase::getKernel should be a static function as WebTestCase::createKernel is. The whole chain to get the kernel should be static as it's dealing with a static member of the class. Otherwise calling getKernel from a static environment requires to use error suppression to suppress the warnings.