2626// DBAL 3 compatibility
2727class_exists ('Doctrine\DBAL\Platforms\SqlitePlatform ' );
2828
29+ // DBAL 3 compatibility
30+ class_exists ('Doctrine\DBAL\Platforms\SqlitePlatform ' );
31+
2932final class UlidTypeTest extends TestCase
3033{
3134 private const DUMMY_ULID = '01EEDQEK6ZAZE93J8KG5B4MBJC ' ;
@@ -84,25 +87,25 @@ public function testNotSupportedTypeConversionForDatabaseValue()
8487 {
8588 $ this ->expectException (ConversionException::class);
8689
87- $ this ->type ->convertToDatabaseValue (new \stdClass (), new SqlitePlatform ());
90+ $ this ->type ->convertToDatabaseValue (new \stdClass (), new SQLitePlatform ());
8891 }
8992
9093 public function testNullConversionForDatabaseValue ()
9194 {
92- $ this ->assertNull ($ this ->type ->convertToDatabaseValue (null , new SqlitePlatform ()));
95+ $ this ->assertNull ($ this ->type ->convertToDatabaseValue (null , new SQLitePlatform ()));
9396 }
9497
9598 public function testUlidInterfaceConvertsToPHPValue ()
9699 {
97100 $ ulid = $ this ->createMock (AbstractUid::class);
98- $ actual = $ this ->type ->convertToPHPValue ($ ulid , new SqlitePlatform ());
101+ $ actual = $ this ->type ->convertToPHPValue ($ ulid , new SQLitePlatform ());
99102
100103 $ this ->assertSame ($ ulid , $ actual );
101104 }
102105
103106 public function testUlidConvertsToPHPValue ()
104107 {
105- $ ulid = $ this ->type ->convertToPHPValue (self ::DUMMY_ULID , new SqlitePlatform ());
108+ $ ulid = $ this ->type ->convertToPHPValue (self ::DUMMY_ULID , new SQLitePlatform ());
106109
107110 $ this ->assertInstanceOf (Ulid::class, $ ulid );
108111 $ this ->assertEquals (self ::DUMMY_ULID , $ ulid ->__toString ());
@@ -112,19 +115,19 @@ public function testInvalidUlidConversionForPHPValue()
112115 {
113116 $ this ->expectException (ConversionException::class);
114117
115- $ this ->type ->convertToPHPValue ('abcdefg ' , new SqlitePlatform ());
118+ $ this ->type ->convertToPHPValue ('abcdefg ' , new SQLitePlatform ());
116119 }
117120
118121 public function testNullConversionForPHPValue ()
119122 {
120- $ this ->assertNull ($ this ->type ->convertToPHPValue (null , new SqlitePlatform ()));
123+ $ this ->assertNull ($ this ->type ->convertToPHPValue (null , new SQLitePlatform ()));
121124 }
122125
123126 public function testReturnValueIfUlidForPHPValue ()
124127 {
125128 $ ulid = new Ulid ();
126129
127- $ this ->assertSame ($ ulid , $ this ->type ->convertToPHPValue ($ ulid , new SqlitePlatform ()));
130+ $ this ->assertSame ($ ulid , $ this ->type ->convertToPHPValue ($ ulid , new SQLitePlatform ()));
128131 }
129132
130133 public function testGetName ()
@@ -150,6 +153,6 @@ public static function provideSqlDeclarations(): \Generator
150153
151154 public function testRequiresSQLCommentHint ()
152155 {
153- $ this ->assertTrue ($ this ->type ->requiresSQLCommentHint (new SqlitePlatform ()));
156+ $ this ->assertTrue ($ this ->type ->requiresSQLCommentHint (new SQLitePlatform ()));
154157 }
155158}
0 commit comments