Completed
Push — develop ( 68a985...a1f82e )
by Adam
10s
created

NoopHydratorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testUsingNoopHydratorThrowsException() 0 7 1
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