File: CallableReflectionTest.php

package info (click to toggle)
php-di-invoker 2.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: php: 1,161; makefile: 13; sh: 6
file content (21 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php declare(strict_types=1);

namespace Invoker\Test\Reflection;

use Invoker\Reflection\CallableReflection;
use PHPUnit\Framework\TestCase;
use ReflectionMethod;

class CallableReflectionTest extends TestCase
{
    public function test_with_not_real_PHP_callable_array()
    {
        $reflection = CallableReflection::create([self::class, 'foo']);

        $this->assertInstanceOf(ReflectionMethod::class, $reflection);
    }

    public function foo(): void
    {
    }
}