@@ -28,6 +28,9 @@ class_exists('Doctrine\DBAL\Platforms\PostgreSqlPlatform');
2828// DBAL 3 compatibility
2929class_exists ('Doctrine\DBAL\Platforms\SqlitePlatform ' );
3030
31+ // DBAL 3 compatibility
32+ class_exists ('Doctrine\DBAL\Platforms\SqlitePlatform ' );
33+
3134final class UlidTypeTest extends TestCase
3235{
3336 private const DUMMY_ULID = '01EEDQEK6ZAZE93J8KG5B4MBJC ' ;
@@ -87,25 +90,25 @@ public function testNotSupportedTypeConversionForDatabaseValue()
8790 {
8891 $ this ->expectException (ConversionException::class);
8992
90- $ this ->type ->convertToDatabaseValue (new \stdClass (), new SqlitePlatform ());
93+ $ this ->type ->convertToDatabaseValue (new \stdClass (), new SQLitePlatform ());
9194 }
9295
9396 public function testNullConversionForDatabaseValue ()
9497 {
95- $ this ->assertNull ($ this ->type ->convertToDatabaseValue (null , new SqlitePlatform ()));
98+ $ this ->assertNull ($ this ->type ->convertToDatabaseValue (null , new SQLitePlatform ()));
9699 }
97100
98101 public function testUlidInterfaceConvertsToPHPValue ()
99102 {
100103 $ ulid = $ this ->createMock (AbstractUid::class);
101- $ actual = $ this ->type ->convertToPHPValue ($ ulid , new SqlitePlatform ());
104+ $ actual = $ this ->type ->convertToPHPValue ($ ulid , new SQLitePlatform ());
102105
103106 $ this ->assertSame ($ ulid , $ actual );
104107 }
105108
106109 public function testUlidConvertsToPHPValue ()
107110 {
108- $ ulid = $ this ->type ->convertToPHPValue (self ::DUMMY_ULID , new SqlitePlatform ());
111+ $ ulid = $ this ->type ->convertToPHPValue (self ::DUMMY_ULID , new SQLitePlatform ());
109112
110113 $ this ->assertInstanceOf (Ulid::class, $ ulid );
111114 $ this ->assertEquals (self ::DUMMY_ULID , $ ulid ->__toString ());
@@ -115,19 +118,19 @@ public function testInvalidUlidConversionForPHPValue()
115118 {
116119 $ this ->expectException (ConversionException::class);
117120
118- $ this ->type ->convertToPHPValue ('abcdefg ' , new SqlitePlatform ());
121+ $ this ->type ->convertToPHPValue ('abcdefg ' , new SQLitePlatform ());
119122 }
120123
121124 public function testNullConversionForPHPValue ()
122125 {
123- $ this ->assertNull ($ this ->type ->convertToPHPValue (null , new SqlitePlatform ()));
126+ $ this ->assertNull ($ this ->type ->convertToPHPValue (null , new SQLitePlatform ()));
124127 }
125128
126129 public function testReturnValueIfUlidForPHPValue ()
127130 {
128131 $ ulid = new Ulid ();
129132
130- $ this ->assertSame ($ ulid , $ this ->type ->convertToPHPValue ($ ulid , new SqlitePlatform ()));
133+ $ this ->assertSame ($ ulid , $ this ->type ->convertToPHPValue ($ ulid , new SQLitePlatform ()));
131134 }
132135
133136 public function testGetName ()
@@ -156,6 +159,6 @@ public static function provideSqlDeclarations(): \Generator
156159
157160 public function testRequiresSQLCommentHint ()
158161 {
159- $ this ->assertTrue ($ this ->type ->requiresSQLCommentHint (new SqlitePlatform ()));
162+ $ this ->assertTrue ($ this ->type ->requiresSQLCommentHint (new SQLitePlatform ()));
160163 }
161164}
0 commit comments