function its_addInterface_throws_exception_if_prophecy_is_already_created($doubler, ProphecySubjectInterface $double) { $doubler->double(null, array())->willReturn($double); $this->getInstance(); $this->shouldThrow('Prophecy\\Exception\\Doubler\\DoubleException')->duringAddInterface('ArrayAccess'); }