Laravel-Test-Helpers icon indicating copy to clipboard operation
Laravel-Test-Helpers copied to clipboard

Code completition

Open EddieOfAlhana opened this issue 11 years ago • 1 comments

There is a large drawback of the facade pattern. As with Laravel in general ide code completition does not work with laravel test helpers. Would you think it would be a best practice to add @method (http://www.phpdoc.org/docs/latest/for-users/phpdoc/tags/method.html) annotation tags to Should.php, Assert.php aso? Or would it be better to create something like barryvdh/laravel-ide-helper to generate a helper file for laravel-test-helpers dinamically in case some new methods are introduced in phpunit?

EddieOfAlhana avatar Oct 21 '13 06:10 EddieOfAlhana

If you add the facade aliases to app.php, wouldn't barryvdh/laravel-ide-helper be able to generate the proper classes for auto-completion?

Edit: 2nd thought, probably not... Should and Assert do not seem to be extending the laravel Facade class

CreepGin avatar Nov 18 '13 01:11 CreepGin