Test double implementation for static methods

v0.1.0 2021-03-21 18:15 UTC

This package is auto-updated.

Last update: 2024-06-17 12:45:42 UTC



Build Status Infection MSI

Doppel is a PHP mocking framework for static methods.



class Vehicle {
    public static function horn() {
        return 'Beep!';

echo Vehicle::horn(), PHP_EOL; // Beep!

$doppel = (new Bag2\Doppel\Factory)->create();

echo Vehicle::horn(), PHP_EOL; // Boo!


echo Vehicle::horn(), PHP_EOL; // Beep!


This package is licenced under Mozilla Public License Version 2.0.

Copyright 2020 Baguette HQ

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at