Passed
Push — master ( 72d254...356a09 )
by Jean Paul
01:39
created

PostgreSqlConnectorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSetGetCharset() 0 10 1
1
<?php declare( strict_types = 1 );
2
3
namespace Coco\SourceWatcher\Tests\Core\Database\Connections;
4
5
use Coco\SourceWatcher\Core\Database\Connections\PostgreSqlConnector;
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * Class PostgreSqlConnectorTest
10
 * @package Coco\SourceWatcher\Tests\Core\Database\Connections
11
 */
12
class PostgreSqlConnectorTest extends TestCase
13
{
14
    /**
15
     *
16
     */
17
    public function testSetGetCharset () : void
18
    {
19
        $connector = new PostgreSqlConnector();
20
21
        $givenCharset = "utf8";
22
        $expectedCharset = "utf8";
23
24
        $connector->setCharset( $givenCharset );
25
26
        $this->assertEquals( $expectedCharset, $connector->getCharset() );
27
    }
28
}
29