@@ -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 ' ;
@@ -86,25 +89,25 @@ public function testNotSupportedTypeConversionForDatabaseValue()
8689 {
8790 $ this ->expectException (ConversionException::class);
8891
89- $ this ->type ->convertToDatabaseValue (new \stdClass (), new SqlitePlatform ());
92+ $ this ->type ->convertToDatabaseValue (new \stdClass (), new SQLitePlatform ());
9093 }
9194
9295 public function testNullConversionForDatabaseValue ()
9396 {
94- $ this ->assertNull ($ this ->type ->convertToDatabaseValue (null , new SqlitePlatform ()));
97+ $ this ->assertNull ($ this ->type ->convertToDatabaseValue (null , new SQLitePlatform ()));
9598 }
9699
97100 public function testUlidInterfaceConvertsToPHPValue ()
98101 {
99102 $ ulid = $ this ->createMock (AbstractUid::class);
100- $ actual = $ this ->type ->convertToPHPValue ($ ulid , new SqlitePlatform ());
103+ $ actual = $ this ->type ->convertToPHPValue ($ ulid , new SQLitePlatform ());
101104
102105 $ this ->assertSame ($ ulid , $ actual );
103106 }
104107
105108 public function testUlidConvertsToPHPValue ()
106109 {
107- $ ulid = $ this ->type ->convertToPHPValue (self ::DUMMY_ULID , new SqlitePlatform ());
110+ $ ulid = $ this ->type ->convertToPHPValue (self ::DUMMY_ULID , new SQLitePlatform ());
108111
109112 $ this ->assertInstanceOf (Ulid::class, $ ulid );
110113 $ this ->assertEquals (self ::DUMMY_ULID , $ ulid ->__toString ());
@@ -114,19 +117,19 @@ public function testInvalidUlidConversionForPHPValue()
114117 {
115118 $ this ->expectException (ConversionException::class);
116119
117- $ this ->type ->convertToPHPValue ('abcdefg ' , new SqlitePlatform ());
120+ $ this ->type ->convertToPHPValue ('abcdefg ' , new SQLitePlatform ());
118121 }
119122
120123 public function testNullConversionForPHPValue ()
121124 {
122- $ this ->assertNull ($ this ->type ->convertToPHPValue (null , new SqlitePlatform ()));
125+ $ this ->assertNull ($ this ->type ->convertToPHPValue (null , new SQLitePlatform ()));
123126 }
124127
125128 public function testReturnValueIfUlidForPHPValue ()
126129 {
127130 $ ulid = new Ulid ();
128131
129- $ this ->assertSame ($ ulid , $ this ->type ->convertToPHPValue ($ ulid , new SqlitePlatform ()));
132+ $ this ->assertSame ($ ulid , $ this ->type ->convertToPHPValue ($ ulid , new SQLitePlatform ()));
130133 }
131134
132135 public function testGetName ()
@@ -155,6 +158,6 @@ public static function provideSqlDeclarations(): \Generator
155158
156159 public function testRequiresSQLCommentHint ()
157160 {
158- $ this ->assertTrue ($ this ->type ->requiresSQLCommentHint (new SqlitePlatform ()));
161+ $ this ->assertTrue ($ this ->type ->requiresSQLCommentHint (new SQLitePlatform ()));
159162 }
160163}
0 commit comments