Bluz\Tests\Common\SingletonTest::testProtectedMethods PHP Method

testProtectedMethods() public method

Test Clone
    public function testProtectedMethods()
    {
        $result = ConcreteSingleton::getInstance();
        $reflection = new \ReflectionObject($result);
        $this->assertTrue($reflection->getMethod('__construct')->isProtected());
        $this->assertTrue($reflection->getMethod('__clone')->isProtected());
    }