Passed
Push — 7.x ( 1e3f37...c475d0 )
by Adrien
06:13 queued 35s
created

SplFloatUnstrictTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
dl 0
loc 14
rs 10
c 1
b 0
f 1
wmc 1
1
<?php
2
3
/**
4
 * Part of SplTypes package.
5
 *
6
 * (c) Adrien Loyant <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=0);
13
14
namespace Ducks\Component\SplTypes\Tests\phpunit;
15
16
use Ducks\Component\SplTypes\SplFloat as DuckFloat;
17
use PHPUnit\Framework\TestCase;
18
19
class SplFloatUnstrictTest extends TestCase
20
{
21
    /**
22
     * Unit test.
23
     *
24
     * @return void
25
     *
26
     * @psalm-suppress InvalidScalarArgument
27
     */
28
    public function test(): void
29
    {
30
        // @phpstan-ignore-next-line
31
        $instance = new DuckFloat('10.1');
32
        $this->assertSame(10.1, $instance());
33
    }
34
}
35