@@ -28,6 +28,9 @@ class_exists('Doctrine\DBAL\Platforms\PostgreSqlPlatform');
28
28
// DBAL 3 compatibility
29
29
class_exists ('Doctrine\DBAL\Platforms\SqlitePlatform ' );
30
30
31
+ // DBAL 3 compatibility
32
+ class_exists ('Doctrine\DBAL\Platforms\SqlitePlatform ' );
33
+
31
34
final class UlidTypeTest extends TestCase
32
35
{
33
36
private const DUMMY_ULID = '01EEDQEK6ZAZE93J8KG5B4MBJC ' ;
@@ -87,25 +90,25 @@ public function testNotSupportedTypeConversionForDatabaseValue()
87
90
{
88
91
$ this ->expectException (ConversionException::class);
89
92
90
- $ this ->type ->convertToDatabaseValue (new \stdClass (), new SqlitePlatform ());
93
+ $ this ->type ->convertToDatabaseValue (new \stdClass (), new SQLitePlatform ());
91
94
}
92
95
93
96
public function testNullConversionForDatabaseValue ()
94
97
{
95
- $ this ->assertNull ($ this ->type ->convertToDatabaseValue (null , new SqlitePlatform ()));
98
+ $ this ->assertNull ($ this ->type ->convertToDatabaseValue (null , new SQLitePlatform ()));
96
99
}
97
100
98
101
public function testUlidInterfaceConvertsToPHPValue ()
99
102
{
100
103
$ ulid = $ this ->createMock (AbstractUid::class);
101
- $ actual = $ this ->type ->convertToPHPValue ($ ulid , new SqlitePlatform ());
104
+ $ actual = $ this ->type ->convertToPHPValue ($ ulid , new SQLitePlatform ());
102
105
103
106
$ this ->assertSame ($ ulid , $ actual );
104
107
}
105
108
106
109
public function testUlidConvertsToPHPValue ()
107
110
{
108
- $ ulid = $ this ->type ->convertToPHPValue (self ::DUMMY_ULID , new SqlitePlatform ());
111
+ $ ulid = $ this ->type ->convertToPHPValue (self ::DUMMY_ULID , new SQLitePlatform ());
109
112
110
113
$ this ->assertInstanceOf (Ulid::class, $ ulid );
111
114
$ this ->assertEquals (self ::DUMMY_ULID , $ ulid ->__toString ());
@@ -115,19 +118,19 @@ public function testInvalidUlidConversionForPHPValue()
115
118
{
116
119
$ this ->expectException (ConversionException::class);
117
120
118
- $ this ->type ->convertToPHPValue ('abcdefg ' , new SqlitePlatform ());
121
+ $ this ->type ->convertToPHPValue ('abcdefg ' , new SQLitePlatform ());
119
122
}
120
123
121
124
public function testNullConversionForPHPValue ()
122
125
{
123
- $ this ->assertNull ($ this ->type ->convertToPHPValue (null , new SqlitePlatform ()));
126
+ $ this ->assertNull ($ this ->type ->convertToPHPValue (null , new SQLitePlatform ()));
124
127
}
125
128
126
129
public function testReturnValueIfUlidForPHPValue ()
127
130
{
128
131
$ ulid = new Ulid ();
129
132
130
- $ this ->assertSame ($ ulid , $ this ->type ->convertToPHPValue ($ ulid , new SqlitePlatform ()));
133
+ $ this ->assertSame ($ ulid , $ this ->type ->convertToPHPValue ($ ulid , new SQLitePlatform ()));
131
134
}
132
135
133
136
public function testGetName ()
@@ -156,6 +159,6 @@ public static function provideSqlDeclarations(): \Generator
156
159
157
160
public function testRequiresSQLCommentHint ()
158
161
{
159
- $ this ->assertTrue ($ this ->type ->requiresSQLCommentHint (new SqlitePlatform ()));
162
+ $ this ->assertTrue ($ this ->type ->requiresSQLCommentHint (new SQLitePlatform ()));
160
163
}
161
164
}
0 commit comments