Пример #1
0
 /**
  * @return string
  */
 public function getIdentity()
 {
     return $this->identity->getIdentifier();
 }
Пример #2
0
 public function it_should_give_identity(Identity $identity)
 {
     $identifier = 'foo.bar';
     $identity->getIdentifier()->willReturn($identifier);
     $this->getIdentity()->shouldBe($identifier);
 }
Пример #3
0
 public function it_should_give_identity(Identity $identity)
 {
     $identity->getIdentifier()->willReturn('foo');
     $this->getIdentity()->shouldReturn('foo');
 }
Пример #4
0
 public function let(Connection $connection, Identity $identity, \AMQPChannel $channel)
 {
     $identity->getIdentifier()->willReturn('foo');
     $this->beConstructedWith($connection, $identity, $channel);
 }