Code Duplication    Length = 7-7 lines in 2 locations

features/bootstrap/ConsumeContext.php 2 locations

@@ 93-99 (lines=7) @@
90
    /**
91
     * @Then the message is a text one
92
     */
93
    public function theMessageIsATextOne()
94
    {
95
        $firstMessage = $this->consumedMessages[0];
96
        
97
        \PHPUnit_Framework_Assert::assertSame($firstMessage->getRoutingKeyFromHeader(), self::TEXT_ROUTING_KEY);
98
        \PHPUnit_Framework_Assert::assertSame($firstMessage->getContentType(), ContentType::TEXT);
99
    }
100
    
101
    /**
102
     * @Then the message is a json one
@@ 104-110 (lines=7) @@
101
    /**
102
     * @Then the message is a json one
103
     */
104
    public function theMessageIsAJsonOne()
105
    {
106
        $firstMessage = $this->consumedMessages[0];
107
        
108
        \PHPUnit_Framework_Assert::assertSame($firstMessage->getRoutingKeyFromHeader(), self::JSON_ROUTING_KEY);
109
        \PHPUnit_Framework_Assert::assertSame($firstMessage->getContentType(), ContentType::JSON);
110
    }
111
    
112
    /**
113
     * @Then the message contains the json :jsonString