Skip to Content

Author: Manuel Kießling

  • Posted on

    Mocking Dependencies in PHP Unit Tests with Mockery

    The PHP library Mockery allows to use a simulated version of certain objects within unit tests, usable where objects are passed into methods as dependencies. This form of simulation is called mocking. The following example shows how mocking enables us to test methods that depend on a database without the need for a real database when running our tests.

  • Posted on

    Building manageable server infrastructures with Puppet: Part 1

    With this series I would like to provide a comprehensive hands-on tutorial that explains step-by-step how to build an automated and centrally managed Linux server infrastructure using Puppet. Part 1 of the series explains in great detail how to set up a virtual machine infrastructure which allows to create a realistic Puppet server-client setup.

  • Posted on

    Building manageable server infrastructures with Puppet: Part 4

    The fourth part of this series shows how an infrastructure-wide users, rights and SSH key management can be realized through Puppet and demonstrates the use of macros in order to streamline the creation of manifests with similar content.