RucaptchaTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testKeySetter() 0 7 1
A testOptionsSetter() 0 6 1
1
<?php
2
3
namespace gladyshev\yii\rucaptcha\test;
4
5
use gladyshev\yii\rucaptcha\Rucaptcha;
6
7
class RucaptchaTest extends \PHPUnit_Framework_TestCase
8
{
9
    /* Some fake tests (for test build via travis)*/
10
11
    public function testKeySetter()
12
    {
13
        $component = new Rucaptcha();
14
        $component->apiKey = '123';
15
        $this->assertEquals('123', $component->apiKey);
16
        
17
    }
18
19
    public function testOptionsSetter()
20
    {
21
        $component = new Rucaptcha();
22
        $component->options = ['123'];
23
        $this->assertEquals(['123'], $component->options);
24
    }
25
}
26