You are here

function ClassNodeSpec::it_ignores_same_interfaces_added_twice in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/spec/Prophecy/Doubler/Generator/Node/ClassNodeSpec.php \spec\Prophecy\Doubler\Generator\Node\ClassNodeSpec::it_ignores_same_interfaces_added_twice()

File

vendor/phpspec/prophecy/spec/Prophecy/Doubler/Generator/Node/ClassNodeSpec.php, line 55

Class

ClassNodeSpec

Namespace

spec\Prophecy\Doubler\Generator\Node

Code

function it_ignores_same_interfaces_added_twice() {
  $this
    ->addInterface('MyInterface');
  $this
    ->addInterface('MyInterface');
  $this
    ->getInterfaces()
    ->shouldHaveCount(1);
  $this
    ->getInterfaces()
    ->shouldReturn(array(
    'MyInterface',
  ));
}