atoum / atoum

The modern, simple and intuitive PHP unit testing framework.

Home Page:http://atoum.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mocking an Throwable interface produces an error

jubianchi opened this issue · comments

Given we have:

<?php

interface MyThrowable extends Throwable {
    //...
}

If we try to mock this interface, it results in an error:

Class MyThrowable cannot implement interface Throwable, extend Exception or Error instead

probably solved in version 4.0.0 with the change made on #843