Purpose: Replaces all ::mock
and ::make
instances with PHP class constants.
This is useful when upgrading Laravel 4 projects to Laravel 5.
Note: This find/replace assumes all mock/make instances utilize full classpaths (e.g.
App::make('My\Project\Namespace\MyClass')
)
Text to find:
\:\:(mock|make)\('(.+?)'\)
Text to replace:
::$1(\\\\$2::class)