Search by tag: php
6 articles
My resume
Interested ? Please contact me to receive the uncensored version.
How to automatically run PHPUnit tests with Laravel and Homestead
During my previous developments, I used to run a custom script with grunt-contrib-watch that reran my PHPUnit tests each time I saved a PHP file. However Laravel comes with Laravel Mix. It is a useful tool, but it lacks (and will always lack) PHPUnit support. So I had to look for another solution…
First time using Laravel Dusk? Here are a few errors and blunders and how to fix them
Fiddling with Laravel Dusk for the first time, I had to install the package: I was still using Laravel 5.6 but the current dusk package was in version 5 which needed Laravel 5.7+. I checked Packagist and got a previous version. In my case it was: Great, now I can start writing awesome tests!…
How to create symbolic links via FTP
Spoiler: you cannot! In order to use Laravel File Storage utility, I had to create a symlink in the public folder pointing to a subfolder located in the... storage folder. That is nice and easy when you can ssh to your production server. However, it is a whole other story if you only have FTP…
Install PHP CodeSniffer with PEAR
This article should be useful for other tools than CodeSniffer. To put some context, I installed PEAR some time ago for PHPUnit, before I read that PHPUnit had moved away from PEAR and can now be installed using Composer or a simple PHAR (PHp ARchive) file. I had troubles with the default PEAR…