Code Duplication    Length = 9-9 lines in 2 locations

test/unit/test/Chaincode/ChaincodeTest.php 2 locations

@@ 111-119 (lines=9) @@
108
        $this->sut = new Chaincode(new \stdClass(), $this->channel);
109
    }
110
111
    public function testInvokeReturnsResponseFromChannel()
112
    {
113
        $this->channel->method('processChaincodeProposal')
114
            ->willReturn($proposalResponse = new ResponseCollection());
115
116
        $response = $this->sut->invoke('query', 'a');
117
118
        self::assertSame($proposalResponse, $response);
119
    }
120
121
    public function testAnyUnspecifiedMethodReturnsResponseFromChannel()
122
    {
@@ 121-129 (lines=9) @@
118
        self::assertSame($proposalResponse, $response);
119
    }
120
121
    public function testAnyUnspecifiedMethodReturnsResponseFromChannel()
122
    {
123
        $this->channel->method('processChaincodeProposal')
124
            ->willReturn($proposalResponse = new ResponseCollection());
125
126
        $response = $this->sut->somethingElseEntirely('query', 'a');
127
128
        self::assertSame($proposalResponse, $response);
129
    }
130
131
    public function testCallSendsChainCodeProposalToChannel()
132
    {