ZoneAnalyticsTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setup() 0 5 1
A testDashboardNoZone() 0 5 1
1
<?php
2
/**
3
 * @author Chris Hilsdon <[email protected]>
4
 */
5
namespace Cloudflare\Tests;
6
7
use Cloudflare;
8
9
class ZoneAnalyticsTest extends BaseUnit
10
{
11
    protected $ZoneAnalytics;
12
13
    //koolserve.xyz
14
    private $KSZoneID = "0f236a513258267544b22764501c4ae6";
0 ignored issues
show
Unused Code introduced by
The property $KSZoneID is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
15
16
    protected function setup()
17
    {
18
        $this->newCloudflare();
19
        $this->ZoneAnalytics = new Cloudflare\ZoneAnalytics($this->getCloudflare());
20
    }
21
22
    public function testDashboardNoZone()
23
    {
24
        $test = $this->ZoneAnalytics->fetchDashboard();
25
        $this->assertFalse($test, "TODO: Cahnge me");
26
    }
27
}