Completed
Push — refactor ( 605953...849f8a )
by Bogdan
01:16
created

BucketTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 13
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
/*
4
 * This file is part of the pinepain/php-object-maps PHP library.
5
 *
6
 * Copyright (c) 2016-2017 Bogdan Padalko <[email protected]>
7
 *
8
 * Licensed under the MIT license: http://opensource.org/licenses/MIT
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code or visit http://opensource.org/licenses/MIT
12
 */
13
14
15
16
namespace Pinepain\ObjectMaps\Tests;
17
18
19
use Pinepain\ObjectMaps\Bucket;
20
use PHPUnit\Framework\TestCase;
21
use stdClass;
22
23
24
class BucketTest extends TestCase
25
{
26
    public function test()
27
    {
28
        $key   = new stdClass();
29
        $value = new stdClass();
30
31
        $bucket = new Bucket($key, $value);
32
33
        $this->assertSame($key, $bucket->key);
34
        $this->assertSame($value, $bucket->value);
35
    }
36
}
37