Bisecting your code with Git in order to identifies regressions with PHPUnit

It is often the case when an application shows a Bug, not present in previous revisions, involving a function not really new but quite used. So it may be useful to own the code revision history to search the exact moment, ...

read more by Walter Dal Mut in Developers

Using spies in your tests with PHPUnit

When developing a complex system, you often need to be sure that a given dependency is checked by the encapsulating entity, in a precise manner. For example, the wrapper of a HTTP Client needs to check that, at invocation ...

read more by Walter Dal Mut in Developers

How to test your CLI commands in ZendFramework2

As you know ZF2 is a general purpose framework with a wide set of features. One of those is adding your personal CLI commands that you can require via your preferred shell application: ##code## The command creation is p...

read more by Walter Dal Mut in Developers

How to execute custom scripts using Composer hooks

As a rule, you use Composer to handle the dependencies of your project and to create your own packages to be included in other projects. But you can also use Composer to start a Script at given points during the tool life...

read more by Walter Dal Mut in Developers

Mocking file system with PHPUnit

Currently, PHPUnit does not support an integrated component to perform test independently on Filesystem. The project suggests the usage of a support library, called "vfsStream" and written by Frank Kleine: it ca...

read more by Walter Dal Mut in Developers

Stubbing dependencies with PHPUnit

Testing a system is often a complex task, due to so many involved dependencies. For example, it might happen that a bug of a dependency raises an issue where really it doesn't exist, because a component has a wrong re...

read more by Walter Dal Mut in Developers

Getting started with PhpUnit

PHPUnit is the most famous testing framework of xUnit family, with more than 10 years of experience among PHP applications. This framework is based upon the so-called Unit Testing concept, i

read more by Walter Dal Mut in Developers

SaltStack cloud and OpenStack

Salt cloud is a provisioning tool that can be integrated with a Cloud Provider. The purpose of this tool is to deploy a minion on a new instance created in the cloud. So the creation of new nodes in your infrastructure i...

read more by Walter Dal Mut in DevOps

cloudparty

Follow Us