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