@@ 47-54 (lines=8) @@ | ||
44 | /** |
|
45 | * @Then la connection :connection devrait être définie |
|
46 | */ |
|
47 | public function laConnectionDevraitEtreDefinie($connection) |
|
48 | { |
|
49 | if (false === isset(self::$silex_app['rabbit.connection'][$connection])) { |
|
50 | throw new \Exception("Connection {$connection} is not defined"); |
|
51 | } |
|
52 | ||
53 | return self::$silex_app['rabbit.connection'][$connection]; |
|
54 | } |
|
55 | ||
56 | /** |
|
57 | * @Then la connection :conn devrait être une instance de :class_name |
|
@@ 73-80 (lines=8) @@ | ||
70 | /** |
|
71 | * @Then le producer :producer devrait être défini |
|
72 | */ |
|
73 | public function leProducerDevraitEtreDefini($producer) |
|
74 | { |
|
75 | if (false === isset(self::$silex_app['rabbit.producer'][$producer])) { |
|
76 | throw new \Exception("Producer {$producer} is not defined"); |
|
77 | } |
|
78 | ||
79 | return self::$silex_app['rabbit.producer'][$producer]; |
|
80 | } |
|
81 | ||
82 | /** |
|
83 | * @Then le producer :producer devrait être une instance de :class_name |
|
@@ 114-121 (lines=8) @@ | ||
111 | /** |
|
112 | * @Then le consumer :consumer devrait être défini |
|
113 | */ |
|
114 | public function leConsumerDevraitEtreDefini($consumer) |
|
115 | { |
|
116 | if (false === isset(self::$silex_app['rabbit.consumer'][$consumer])) { |
|
117 | throw new \Exception("Consumer {$consumer} is not defined"); |
|
118 | } |
|
119 | ||
120 | return self::$silex_app['rabbit.consumer'][$consumer]; |
|
121 | } |
|
122 | ||
123 | /** |
|
124 | * @Then le consumer :consumer_name devrait être une instance de :class_name |