ClientTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 8
rs 9.4285
1
<?php
2
include '../vendor/autoload.php';
3
4
use Guzzle\Http;
5
6
class ClientTest extends PHPUnit_Framework_TestCase
7
{
8
    protected $client = null;
9
10
    public function setUp()
11
    {
12
        global $apikey;
13
14
        $this->client = new \Clarify\Client($apikey);
15
16
        parent::setUp();
17
    }
18
19
    /**
20
     * @expectedException \Clarify\Exceptions\InvalidIntegerArgumentException
21
     */
22
    public function testPutWithException()
23
    {
24
        $params = array('version' => 'not an integer');
25
        $this->client->put('empty url', $params);
26
    }
27
}