tests/SchemaTest.php
/**
     * @dataProvider lowercaseConstraintsProviderTrait
     *
     * @param string $tableName
     * @param string $type
     * @param mixed $expected
     *
     * @throws Exception
     * @throws InvalidConfigException
     */
@dataProvider lowercaseConstraintsProviderTrait
@param string $tableName
@param string $type
@param mixed $expected

@throws Exception
@throws InvalidConfigException
@dataProvider lowercaseConstraintsProviderTrait @param string $tableName @param string $type @param mixed $expected @throws Exception @throws InvalidConfigException
public function testTableSchemaConstraintsWithPdoLowercase(string $tableName, string $type, $expected): void
    {
        if ($expected === false) {
            $this->expectException(NotSupportedException::class);
        }
        $db = $this->getConnection();
        $db->getSlavePdo()->setAttribute(PDO::ATTR_CASE, PDO::CASE_LOWER);
        $constraints = $db->getSchema()->{'getTable' . ucfirst($type)}($tableName, true);
        $this->assertMetadataEquals($expected, $constraints);
    }
public function testTableSchemaConstraintsWithPdoLowercase ( string $ tableName , string $ type , $ expected ) : void { if ( $ expected === false ) { $ this -> expectException ( NotSupportedException :: class ) ; } $ db = $ this -> getConnection ( ) ; $ db -> getSlavePdo ( ) -> setAttribute ( PDO :: ATTR_CASE , PDO :: CASE_LOWER ) ; $ constraints = $ db -> getSchema ( ) -> { 'getTable' . ucfirst ( $ type ) } ( $ tableName , true ) ; $ this -> assertMetadataEquals ( $ expected , $ constraints ) ; }
@dataProvider lowercaseConstraintsProviderTrait
 @param string $tableName
 @param string $type
 @param mixed $expected
@dataProvider lowercaseConstraintsProviderTrait @param string $tableName @param string $type @param mixed $expected