PHPNews

Stop Fighting

I posted this on Facebook about an hour ago, but this is not limited to Facebook. It should not be. So I’m reposting it here. Today was a day like any other, except that it wasn’t. It was an official day of mourning in The Netherlands. This morning as I woke up, it was still a day like any other. When I got into my …

Continue reading »

Written by Stefan Koopmanschap - - Aggregated on Sunday October 12, 2014


What We Can Learn From Code Spaces

A sad thing happened earlier this week to the (d)vcs hosting service Code Spaces . An unauthorized person gained access to their Amazon controlpanel, and after an attempt to extort money out of Code Spaces to stop a DDoS on their services, (s)he started deleting their Amazon instances. Everything. At the point where …

Continue reading »

Written by Stefan Koopmanschap - - Aggregated on Sunday October 12, 2014


Bristol UK area, you need me

Yesterday, @phpsw tweeted: also, still looking for people to speak about testing/CI in July/August, if anyone wants to volunteer before we start searching/goading :) I, sort of jokingly, responded with: @phpsw if someone can give me a good reason to travel there I could ;) I say “sort of jokingly” …

Continue reading »

Written by Stefan Koopmanschap - - Aggregated on Sunday October 12, 2014


Test Spies and Mockery

While recording some screencasts I was struggling to figure out how to get PHPUnit’s built-in object mocking tools to allow me to create what is known as a “test spy”. I talk about them briefly in my PHPUnit Cookbook but I think that what I wanted to do in this instance was beyond what PHPUnit could give me. I …

Continue reading »

Written by Chris Hartjes - - Aggregated on Sunday October 12, 2014


The Power of the BrowserProxyMob

At work I have been involved with an effort to put some automated front-end testing in place. The combination of Behat , Mink running tests using PhantomJS is a good one for this. Open source, easy to configure, handles JavaScript-heavy pages reasonably well. There was just one wrinkle in our plans: our use …

Continue reading »

Written by Chris Hartjes - - Aggregated on Sunday October 12, 2014


Data providers and arrays

I was asked a question on Twitter by Tex Morgan about a problem he was having with PHPUnit data providers . He was trying to pass in some data and kept wondering why PHPUnit was serializing the data instead of doing what he was expecting. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 …

Continue reading »

Written by Chris Hartjes - - Aggregated on Sunday October 12, 2014


To everyone but that guy

Fig 1. Internet Jesus It took many hours (read: seconds) of research to discover who Internet Jesus actually is. We can assume that the advice you are about to receive does not apply to Him, and Him alone. It's Friday today, and I thought I would take some time to share with you something we try to do at my …

Continue reading »

Written by Krakjoe - - Aggregated on Friday October 10, 2014


How to Choose PHP Hosting

I've been thinking a lot about the state of hosting in PHP lately, mostly as a result of working with a few different clients on their setups (including one that bought brand new hosting a month ago and got a PHP 5.3.3 platform), and also being at DrupalCon and meeting a community who is about to make a big change to …

Continue reading »

Written by Lorna Jane - - Aggregated on Thursday October 9, 2014


How to Choose PHP Hosting

I've been thinking a lot about the state of hosting in PHP lately, mostly as a result of working with a few different clients on their setups (including one that bought brand new hosting a month ago and got a PHP 5.3.3 platform), and also being at DrupalCon and meeting a community who is about to make a big change to …

Continue reading »

Written by Lorna Jane - - Aggregated on Thursday October 9, 2014


How to Choose PHP Hosting

I've been thinking a lot about the state of hosting in PHP lately, mostly as a result of working with a few different clients on their setups (including one that bought brand new hosting a month ago and got a PHP 5.3.3 platform), and also being at DrupalCon and meeting a community who is about to make a big change to …

Continue reading »

Written by Lorna Jane - - Aggregated on Thursday October 9, 2014


What’s The Difference Between A “Pivot Table” And An “Association Table”?

An “association table” is a table that joins other tables in a many-to-many relationship. For example, if an Article can have more than one Tag, and each Tag can be placed on one or more Articles, then they are in a many-to-many relationship. To associate them to each other, we need a third table through which we can …

Continue reading »

Written by Paul M. Jones - - Aggregated on Thursday October 9, 2014


What’s The Difference Between A “Pivot Table” And An “Association Table”?

An “association table” is a table that joins other tables in a many-to-many relationship. For example, if an Article can have more than one Tag, and each Tag can be placed on one or more Articles, then they are in a many-to-many relationship. To associate them to each other, we need a third table through which we can …

Continue reading »

Written by Paul M. Jones - - Aggregated on Thursday October 9, 2014


Mockery Spies

Spies have been on the cards for mockery for a long time and even after putting together an implementation in February, I kind of stalled out on making a decision on the public API. Fast forward a few months and I figured it was just time to ship it, so I went with the most mockery like API and merged it in …

Continue reading »

Written by Dave Marshall - - Aggregated on Thursday October 9, 2014


Monkeys and Humans

Fig 1. A (cheeky) monkey For some people, it's easier to make sense of just what a monkey is if we assume that all a monkey is ever trying to do is be a human. That if it could just lose the hair and walk upright, we could give it a bank account, job, car, and the rest of it; they'd fit right in. Since HHVM …

Continue reading »

Written by Krakjoe - - Aggregated on Wednesday October 8, 2014