Skip to content

Instantly share code, notes, and snippets.

View fbourigault's full-sized avatar

Fabien Bourigault fbourigault

View GitHub Profile
@fbourigault
fbourigault / exception-interface.phpt
Last active December 4, 2019 14:55
Mock Exception Interface
--TEST--
\PHPUnit\Framework\MockObject\Generator::generate('Baz', [], 'MockBaz', true, true)
--FILE--
<?php declare(strict_types=1);
interface Bar extends \Throwable
{
public function foo(): string;
}
interface Baz extends Bar