Passed
Push — master ( 719238...b63b3e )
by Alexander
02:16
created

testMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 9
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Injector\Tests;
6
7
class MissingInternalArgumentExceptionTest extends ArgumentExceptionTest
8
{
9
    protected const EXCEPTION_CLASS_NAME = \Yiisoft\Injector\MissingInternalArgumentException::class;
10
11
    public function testMessage(): void
12
    {
13
        $reflection = new \ReflectionFunction('\\array_map');
14
        $exception = $this->createException($reflection, 'someParameter');
15
16
        $this->assertSame(
17
            'Can not determine default value of parameter "someParameter" when calling "array_map" because it is PHP'
18
            . ' internal. Please specify argument explicitly.',
19
            $exception->getMessage()
20
        );
21
    }
22
}
23