gossi\codegen\tests\config\ConfigTest::testCodeGeneratorConfigDefaults PHP Method

testCodeGeneratorConfigDefaults() public method

    public function testCodeGeneratorConfigDefaults()
    {
        $config = new CodeGeneratorConfig();
        $this->assertTrue($config->getGenerateDocblock());
        $this->assertTrue($config->getGenerateEmptyDocblock());
        $this->assertFalse($config->getGenerateScalarTypeHints());
        $this->assertFalse($config->getGenerateReturnTypeHints());
        $this->assertTrue($config->isSortingEnabled());
        $this->assertEquals(CodeGenerator::SORT_USESTATEMENTS_DEFAULT, $config->getUseStatementSorting());
        $this->assertEquals(CodeGenerator::SORT_CONSTANTS_DEFAULT, $config->getConstantSorting());
        $this->assertEquals(CodeGenerator::SORT_PROPERTIES_DEFAULT, $config->getPropertySorting());
        $this->assertEquals(CodeGenerator::SORT_METHODS_DEFAULT, $config->getMethodSorting());
    }