PHPNews

Meetings and Cross TimeZone Teams

Written by Alfred Nutile RSS - Published on Alfred Nutile RSS
Aggregated on Monday May 8, 2017 - Permalink

Wrote and article [https://medium.com/@alnutile/meetings-and-cross-timezone-teams-c9b833c43bfb](https://medium.com/@alnutile/meetings-and-cross-timezone-teams-c9b833c43bfb) on trying to find the blanance of meetings and focus time. Saved here as well for when they go out of business :) ## Meetings and Cross TimeZone Teams Meetings are needed, most of them at least, and when I worked with a team …

Continue reading »


Dusk and Homestead

Written by Alfred Nutile RSS - Published on Alfred Nutile RSS
Aggregated on Monday May 8, 2017 - Permalink

Working on learning [Dusk](https://laravel.com/docs/5.4/dusk#introduction) and really excited to get going with it. But running it in homestead proved to be a bit tricky. After following the docs and running `php artisan dusk` not much happened. Sure if I ran it on my Mac and it just worked but my tests needed to do migrations and what not and I want to keep my work in Homestead. So a few …

Continue reading »


Homestead and Auto Setup Hosts File

Written by Alfred Nutile RSS - Published on Alfred Nutile RSS
Aggregated on Friday April 14, 2017 - Permalink

I discovered this Vagrant Plugin [https://github.com/cogitatio/vagrant-hostsupdater](https://github.com/cogitatio/vagrant-hostsupdater) thanks to [https://github.com/cogitatio/vagrant-hostsupdater](https://github.com/cogitatio/vagrant-hostsupdater) when setting up Windows and thought why can't I use it on my Mac? Just like the docs say on their github site ~~~ vagrant plugin install …

Continue reading »


Example of Mixing it up Behat BDD and PHPUnit

Written by Alfred Nutile RSS - Published on Alfred Nutile RSS
Aggregated on Friday April 14, 2017 - Permalink

Just wanted to show two things here. One is how sometimes I end up in PHPUnit to work out some ideas. And two how awesome it is to refactor thanks to PHPUnit. In this example I had a Class responsible for saving data, we'll call FooSaveData. But before that save it has to process some incoming information against another set of data to save the results of that. So I made another class we'll …

Continue reading »


Keeping a Controller Method Simple

Written by Alfred Nutile RSS - Published on Alfred Nutile RSS
Aggregated on Friday April 14, 2017 - Permalink

When I am done with a controller, done mocking up ideas and ready for some long term code, then I think this is the most information a Controller method should have. ~~~ public function updateFoor($id, $foo) { try { $results = $this->someRepoOrServiceClass($Id, $foo); return Response::json(['data' => [], 'message' => "Success …

Continue reading »


Behat Laravel Domain Testing Inside Out

Written by Alfred Nutile RSS - Published on Alfred Nutile RSS
Aggregated on Friday April 14, 2017 - Permalink

![](https://dl.dropboxusercontent.com/s/055lj0hcljvpp7u/4_pane_guy_and_getting_started.png?dl=0) I will cover the use of `FormRequest`, `Mockery`, `Behat` and more in this article. The article will show how to test your Domain code, in this case I mean testing how the code will work outside of the Routing and Controller layer of your Application. But what this will lead to is a "lego" like …

Continue reading »