@@ -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 ' ;
@@ -86,25 +89,25 @@ public function testNotSupportedTypeConversionForDatabaseValue()
86
89
{
87
90
$ this ->expectException (ConversionException::class);
88
91
89
- $ this ->type ->convertToDatabaseValue (new \stdClass (), new SqlitePlatform ());
92
+ $ this ->type ->convertToDatabaseValue (new \stdClass (), new SQLitePlatform ());
90
93
}
91
94
92
95
public function testNullConversionForDatabaseValue ()
93
96
{
94
- $ this ->assertNull ($ this ->type ->convertToDatabaseValue (null , new SqlitePlatform ()));
97
+ $ this ->assertNull ($ this ->type ->convertToDatabaseValue (null , new SQLitePlatform ()));
95
98
}
96
99
97
100
public function testUlidInterfaceConvertsToPHPValue ()
98
101
{
99
102
$ ulid = $ this ->createMock (AbstractUid::class);
100
- $ actual = $ this ->type ->convertToPHPValue ($ ulid , new SqlitePlatform ());
103
+ $ actual = $ this ->type ->convertToPHPValue ($ ulid , new SQLitePlatform ());
101
104
102
105
$ this ->assertSame ($ ulid , $ actual );
103
106
}
104
107
105
108
public function testUlidConvertsToPHPValue ()
106
109
{
107
- $ ulid = $ this ->type ->convertToPHPValue (self ::DUMMY_ULID , new SqlitePlatform ());
110
+ $ ulid = $ this ->type ->convertToPHPValue (self ::DUMMY_ULID , new SQLitePlatform ());
108
111
109
112
$ this ->assertInstanceOf (Ulid::class, $ ulid );
110
113
$ this ->assertEquals (self ::DUMMY_ULID , $ ulid ->__toString ());
@@ -114,19 +117,19 @@ public function testInvalidUlidConversionForPHPValue()
114
117
{
115
118
$ this ->expectException (ConversionException::class);
116
119
117
- $ this ->type ->convertToPHPValue ('abcdefg ' , new SqlitePlatform ());
120
+ $ this ->type ->convertToPHPValue ('abcdefg ' , new SQLitePlatform ());
118
121
}
119
122
120
123
public function testNullConversionForPHPValue ()
121
124
{
122
- $ this ->assertNull ($ this ->type ->convertToPHPValue (null , new SqlitePlatform ()));
125
+ $ this ->assertNull ($ this ->type ->convertToPHPValue (null , new SQLitePlatform ()));
123
126
}
124
127
125
128
public function testReturnValueIfUlidForPHPValue ()
126
129
{
127
130
$ ulid = new Ulid ();
128
131
129
- $ this ->assertSame ($ ulid , $ this ->type ->convertToPHPValue ($ ulid , new SqlitePlatform ()));
132
+ $ this ->assertSame ($ ulid , $ this ->type ->convertToPHPValue ($ ulid , new SQLitePlatform ()));
130
133
}
131
134
132
135
public function testGetName ()
@@ -155,6 +158,6 @@ public static function provideSqlDeclarations(): \Generator
155
158
156
159
public function testRequiresSQLCommentHint ()
157
160
{
158
- $ this ->assertTrue ($ this ->type ->requiresSQLCommentHint (new SqlitePlatform ()));
161
+ $ this ->assertTrue ($ this ->type ->requiresSQLCommentHint (new SQLitePlatform ()));
159
162
}
160
163
}
0 commit comments