Code Duplication    Length = 7-7 lines in 2 locations

features/bootstrap/FeatureContext.php 2 locations

@@ 88-94 (lines=7) @@
85
    /**
86
     * @Given /^\$app\["amqp\.(\w+)"\]\["(\w+)"\]->(\w+)\(\) == "([^"]*)"$/
87
     */
88
    public function checkGetterString($type, $name, $method, $value)
89
    {
90
        if ($this->app["amqp.{$type}"][$name]->$method() != $value) {
91
            $value = $this->app["amqp.{$type}"][$name]->$method();
92
            throw new Exception("\$app['amqp.{$type}'['{$name}']]->{$method}() = " . var_export($value, true));
93
        }
94
    }
95
96
    /**
97
     * @Given /^\$app\["amqp\.(\w+)"\]\["(\w+)"\]->(\w+)\(\) == (true|false)$/
@@ 99-105 (lines=7) @@
96
    /**
97
     * @Given /^\$app\["amqp\.(\w+)"\]\["(\w+)"\]->(\w+)\(\) == (true|false)$/
98
     */
99
    public function checkGetterBoolean($type, $name, $method, $value)
100
    {
101
        if ($this->app["amqp.{$type}"][$name]->$method() != (strtolower($value) == "true")) {
102
            $value = $this->app["amqp.{$type}"][$name]->$method();
103
            throw new Exception("\$app['amqp.{$type}'['{$name}']]->{$method}() = " . var_export($value, true));
104
        }
105
    }
106
107
    /**
108
     * @Given /^que je bind une file sur l\'exchange "([^"]*)"$/