/** * @return string */ public function getIdentity() { return $this->identity->getIdentifier(); }
public function it_should_give_identity(Identity $identity) { $identifier = 'foo.bar'; $identity->getIdentifier()->willReturn($identifier); $this->getIdentity()->shouldBe($identifier); }
public function it_should_give_identity(Identity $identity) { $identity->getIdentifier()->willReturn('foo'); $this->getIdentity()->shouldReturn('foo'); }
public function let(Connection $connection, Identity $identity, \AMQPChannel $channel) { $identity->getIdentifier()->willReturn('foo'); $this->beConstructedWith($connection, $identity, $channel); }