assertNull(Charsets::findCollationByName( $GLOBALS['dbi'], $GLOBALS['cfg']['Server']['DisableIS'], null )); $this->assertNull(Charsets::findCollationByName( $GLOBALS['dbi'], $GLOBALS['cfg']['Server']['DisableIS'], '' )); $this->assertNull(Charsets::findCollationByName( $GLOBALS['dbi'], $GLOBALS['cfg']['Server']['DisableIS'], 'invalid' )); $actual = Charsets::findCollationByName( $GLOBALS['dbi'], $GLOBALS['cfg']['Server']['DisableIS'], 'utf8_general_ci' ); $this->assertInstanceOf(Charsets\Collation::class, $actual); $this->assertSame('utf8_general_ci', $actual->getName()); } }