RucaptchaTest::testOptionsSetter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
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