Completed
Pull Request — develop (#5)
by Adam
01:26
created

testUsingNoopHydratorThrowsException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace IBM\Watson\Common\tests;
4
5
use GuzzleHttp\Psr7\Response;
6
use IBM\Watson\Common\Hydrator\NoopHydrator;
7
use PHPUnit\Framework\TestCase;
8
use Mockery as m;
9
10
class NoopHydratorTest extends TestCase
11
{
12
    /**
13
     * @expectedException \LogicException
14
     * @expectedExceptionMessage The NoopHydrator should never be called
15
     */
16
    public function testUsingNoopHydratorThrowsException()
17
    {
18
        $response = m::mock(Response::class);
19
20
        $hydrator = new NoopHydrator();
21
        $hydrator->hydrate($response);
22
    }
23
}
24