Code Duplication    Length = 10-10 lines in 2 locations

test/unit/test/Proposal/ResponseTest.php 2 locations

@@ 32-41 (lines=10) @@
29
 */
30
class ResponseTest extends TestCase
31
{
32
    public function testProposalResponse()
33
    {
34
        $response = new ProposalResponse();
35
36
        $sut = Response::fromProposalResponse($response);
37
38
        self::assertFalse($sut->isException());
39
        self::assertNull($sut->getException());
40
        self::assertSame($response, $sut->getProposalResponse());
41
    }
42
43
    public function testException()
44
    {
@@ 43-52 (lines=10) @@
40
        self::assertSame($response, $sut->getProposalResponse());
41
    }
42
43
    public function testException()
44
    {
45
        $exception = new \Exception();
46
47
        $sut = Response::fromException($exception);
48
49
        self::assertTrue($sut->isException());
50
        self::assertSame($exception, $sut->getException());
51
        self::assertNull($sut->getProposalResponse());
52
    }
53
}
54