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