@@ -80,36 +80,31 @@ public function testTypes()
8080 $ column ->object ();
8181 $ this ->assertSame (Type::getType (Types::OBJECT ), $ dbalColumn ->getType ());
8282
83- if (defined ('Doctrine \\DBAL \\Types \\Types::BINARY ' )) {
84- $ column ->binary (43 );
85- $ this ->assertSame (Type::getType (Types::BINARY ), $ dbalColumn ->getType ());
86- $ this ->assertSame (43 , $ dbalColumn ->getLength ());
87- $ this ->assertSame (false , $ dbalColumn ->getFixed ());
88- }
83+ $ column ->binary (43 );
84+ $ this ->assertSame (Type::getType (Types::BINARY ), $ dbalColumn ->getType ());
85+ $ this ->assertSame (43 , $ dbalColumn ->getLength ());
86+ $ this ->assertSame (false , $ dbalColumn ->getFixed ());
8987
90- if (defined ('Doctrine \\DBAL \\Types \\Types::DATE_IMMUTABLE ' )) {
91- // Doctrine DBAL 2.6+
92- $ column ->dateImmutable ();
93- $ this ->assertSame (Type::getType ('date_immutable ' ), $ dbalColumn ->getType ());
88+ $ column ->dateImmutable ();
89+ $ this ->assertSame (Type::getType ('date_immutable ' ), $ dbalColumn ->getType ());
9490
95- $ column ->datetimeImmutable ();
96- $ this ->assertSame (Type::getType (Types::DATETIME_IMMUTABLE ), $ dbalColumn ->getType ());
91+ $ column ->datetimeImmutable ();
92+ $ this ->assertSame (Type::getType (Types::DATETIME_IMMUTABLE ), $ dbalColumn ->getType ());
9793
98- $ column ->datetimeTzImmutable ();
99- $ this ->assertSame (Type::getType (Types::DATETIMETZ_IMMUTABLE ), $ dbalColumn ->getType ());
94+ $ column ->datetimeTzImmutable ();
95+ $ this ->assertSame (Type::getType (Types::DATETIMETZ_IMMUTABLE ), $ dbalColumn ->getType ());
10096
101- $ column ->time ();
102- $ this ->assertSame (Type::getType (Types::TIME_MUTABLE ), $ dbalColumn ->getType ());
97+ $ column ->time ();
98+ $ this ->assertSame (Type::getType (Types::TIME_MUTABLE ), $ dbalColumn ->getType ());
10399
104- $ column ->timeImmutable ();
105- $ this ->assertSame (Type::getType (Types::TIME_IMMUTABLE ), $ dbalColumn ->getType ());
100+ $ column ->timeImmutable ();
101+ $ this ->assertSame (Type::getType (Types::TIME_IMMUTABLE ), $ dbalColumn ->getType ());
106102
107- $ column ->dateInterval ();
108- $ this ->assertSame (Type::getType (Types::DATEINTERVAL ), $ dbalColumn ->getType ());
103+ $ column ->dateInterval ();
104+ $ this ->assertSame (Type::getType (Types::DATEINTERVAL ), $ dbalColumn ->getType ());
109105
110- $ column ->json ();
111- $ this ->assertSame (Type::getType (Types::JSON ), $ dbalColumn ->getType ());
112- }
106+ $ column ->json ();
107+ $ this ->assertSame (Type::getType (Types::JSON ), $ dbalColumn ->getType ());
113108
114109 $ this ->assertSame ('foo ' , $ column ->getDbalColumn ()->getName ());
115110 }
0 commit comments