gossi\codegen\tests\parser\ParameterParserTest::testFromReflection PHP Method

testFromReflection() public method

public testFromReflection ( )
    public function testFromReflection()
    {
        $class = new \ReflectionClass('gossi\\codegen\\tests\\fixtures\\Entity');
        $ctor = $class->getMethod('__construct');
        $params = $ctor->getParameters();
        foreach ($params as $param) {
            switch ($param->getName()) {
                case 'a':
                    $this->paramA($param);
                    break;
                case 'b':
                    $this->paramB($param);
                    break;
                case 'c':
                    $this->paramC($param);
                    break;
                case 'd':
                    $this->paramD($param);
                    break;
                case 'e':
                    $this->paramE($param);
                    break;
            }
        }
    }