Completed
Pull Request — master (#30)
by Rudolph
04:05 queued 53s
created

SessionIdTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testToString() 0 6 1
1
<?php
2
3
namespace PSR7SessionsTest\Storage\Id;
4
5
use PHPUnit_Framework_TestCase;
6
use PSR7Sessions\Storage\Id\SessionId;
7
8
class SessionIdTest extends PHPUnit_Framework_TestCase
9
{
10
    public function testToString()
11
    {
12
        $id = new SessionId('my-id');
13
14
        $this->assertSame('my-id', (string)$id);
15
    }
16
}
17