/** * @expectedException \Exception * @expectedExceptionMessage Given class doesn't implement ChildInterface */ public function testCreateFromClass() { $loop = Phake::mock('React\\EventLoop\\LoopInterface'); Fixed::createFromClass('stdClass', $loop); }