Completed
Push — refactor ( 4e5faf...5ad188 )
by Bogdan
02:12
created

BucketTest::test()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

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