Completed
Push — master ( 298f36...c6c82d )
by Mihail
06:19 queued 10s
created

BugConfigFromIniStringTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1
1
<?php
2
3
namespace Koded\Stdlib;
4
5
use PHPUnit\Framework\TestCase;
6
7
class BugConfigFromIniStringTest extends TestCase
8
{
9
10
    public function test_parse_ini_string_expected_same_transformation_as_from_parse_ini_file()
11
    {
12
        $config = new Config;
13
        $config->fromEnvironment(['KEY_4'], '', false);
14
15
        $this->assertNotSame(true, $config->get('KEY_4'), 'Expects (bool)true instead (int)1');
16
        $this->assertSame(1, $config->get('KEY_4'), 'parse_ini_string(): booleans are returned as integers...');
17
    }
18
}
19