/** * @test */ public function it_can_provide_all_held_characters() { $characters = $this->repository->getAll(); $tally = 0; foreach ($characters as $character) { $tally++; ha::assertThat('character', $character, hm::is(hm::anInstanceOf(Character::class))); } ha::assertThat('count', $tally, hm::is(hm::equalTo(1))); }
/** * @Given /^There is a Consumer named "([^"]*)" consuming from "([^"]*)"$/ */ public function thereIsAConsumerNamed($name, $topic) { $consumer = $this->getContainer()->get($name); ha::assertThat($consumer, hm::is(hm::anInstanceOf($this->getContainer()->getParameter('old_sound_rabbit_mq.consumer.class')))); ha::assertThat($consumer->getQueueOptions()['routing_keys'], hm::is(hm::arrayContaining($topic))); }