Completed
Push — master ( a14055...bb6570 )
by Ankit
03:42
created

TestSession::testPutValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 9.4285
1
<?php
2
namespace ChatApp\Tests;
3
4
use PHPUnit_Framework_TestCase;
5
use ChatApp\Session;
6
7
class TestSession
8
    extends
0 ignored issues
show
Coding Style introduced by
The extends keyword must be on the same line as the class name
Loading history...
9
        PHPUnit_Framework_TestCase
0 ignored issues
show
Coding Style introduced by
Expected 1 space before "PHPUnit_Framework_TestCase"; 8 found
Loading history...
10
{
11
12
13
    public function testPutValue()
14
    {
15
        $key = 'test';
16
        $value = 'test';
17
        Session::put($key, $value);
18
        return ['key' => $key, 'value' => $value];
19
    }
20
21
    /**
22
    * @depends testPutValue
23
    */
24
    public function testGet($array)
25
    {
26
        $value = Session::get($array['key']);
27
        $this->assertEquals(null, $value);
28
    }
29
}
30
31