@@ -594,7 +594,7 @@ public function thereAreDummyObjectsWithDummyDate(int $nb)
594
594
$ descriptions = ['Smart dummy. ' , 'Not so smart dummy. ' ];
595
595
596
596
for ($ i = 1 ; $ i <= $ nb ; ++$ i ) {
597
- $ date = new DateTime (sprintf ('2015-04-%d ' , $ i ), new DateTimeZone ('UTC ' ));
597
+ $ date = new \ DateTime (sprintf ('2015-04-%d ' , $ i ), new \ DateTimeZone ('UTC ' ));
598
598
599
599
$ dummy = $ this ->buildDummy ();
600
600
$ dummy ->setName ('Dummy # ' .$ i );
@@ -625,11 +625,11 @@ public function thereAreDummyObjectsWithDummyDateAndDummyBoolean(int $nb, string
625
625
$ bool = false ;
626
626
} else {
627
627
$ expected = ['true ' , 'false ' , '1 ' , '0 ' ];
628
- throw new InvalidArgumentException (sprintf ('Invalid boolean value for "%s" property, expected one of ( "%s" ) ' , $ bool , implode ('" | " ' , $ expected )));
628
+ throw new \ InvalidArgumentException (sprintf ('Invalid boolean value for "%s" property, expected one of ( "%s" ) ' , $ bool , implode ('" | " ' , $ expected )));
629
629
}
630
630
631
631
for ($ i = 1 ; $ i <= $ nb ; ++$ i ) {
632
- $ date = new DateTime (sprintf ('2015-04-%d ' , $ i ), new DateTimeZone ('UTC ' ));
632
+ $ date = new \ DateTime (sprintf ('2015-04-%d ' , $ i ), new \ DateTimeZone ('UTC ' ));
633
633
634
634
$ dummy = $ this ->buildDummy ();
635
635
$ dummy ->setName ('Dummy # ' .$ i );
@@ -654,7 +654,7 @@ public function thereAreDummyObjectsWithDummyDateAndDummyBoolean(int $nb, string
654
654
public function thereAreDummyObjectsWithDummyDateAndRelatedDummy (int $ nb )
655
655
{
656
656
for ($ i = 1 ; $ i <= $ nb ; ++$ i ) {
657
- $ date = new DateTime (sprintf ('2015-04-%d ' , $ i ), new DateTimeZone ('UTC ' ));
657
+ $ date = new \ DateTime (sprintf ('2015-04-%d ' , $ i ), new \ DateTimeZone ('UTC ' ));
658
658
659
659
$ relatedDummy = $ this ->buildRelatedDummy ();
660
660
$ relatedDummy ->setName ('RelatedDummy # ' .$ i );
@@ -682,7 +682,7 @@ public function thereAreDummyObjectsWithDummyDateAndRelatedDummy(int $nb)
682
682
public function thereAreDummyObjectsWithDummyDateAndEmbeddedDummy (int $ nb )
683
683
{
684
684
for ($ i = 1 ; $ i <= $ nb ; ++$ i ) {
685
- $ date = new DateTime (sprintf ('2015-04-%d ' , $ i ), new DateTimeZone ('UTC ' ));
685
+ $ date = new \ DateTime (sprintf ('2015-04-%d ' , $ i ), new \ DateTimeZone ('UTC ' ));
686
686
687
687
$ embeddableDummy = $ this ->buildEmbeddableDummy ();
688
688
$ embeddableDummy ->setDummyName ('Embeddable # ' .$ i );
@@ -709,7 +709,7 @@ public function thereAreconvertedDateObjectsWith(int $nb)
709
709
{
710
710
for ($ i = 1 ; $ i <= $ nb ; ++$ i ) {
711
711
$ convertedDate = $ this ->buildConvertedDate ();
712
- $ convertedDate ->nameConverted = new DateTime (sprintf ('2015-04-%d ' , $ i ), new DateTimeZone ('UTC ' ));
712
+ $ convertedDate ->nameConverted = new \ DateTime (sprintf ('2015-04-%d ' , $ i ), new \ DateTimeZone ('UTC ' ));
713
713
714
714
$ this ->manager ->persist ($ convertedDate );
715
715
}
@@ -795,7 +795,7 @@ public function thereAreDummyObjectsWithDummyBoolean(int $nb, string $bool)
795
795
$ bool = false ;
796
796
} else {
797
797
$ expected = ['true ' , 'false ' , '1 ' , '0 ' ];
798
- throw new InvalidArgumentException (sprintf ('Invalid boolean value for "%s" property, expected one of ( "%s" ) ' , $ bool , implode ('" | " ' , $ expected )));
798
+ throw new \ InvalidArgumentException (sprintf ('Invalid boolean value for "%s" property, expected one of ( "%s" ) ' , $ bool , implode ('" | " ' , $ expected )));
799
799
}
800
800
$ descriptions = ['Smart dummy. ' , 'Not so smart dummy. ' ];
801
801
@@ -823,7 +823,7 @@ public function thereAreDummyObjectsWithEmbeddedDummyBoolean(int $nb, string $bo
823
823
$ bool = false ;
824
824
} else {
825
825
$ expected = ['true ' , 'false ' , '1 ' , '0 ' ];
826
- throw new InvalidArgumentException (sprintf ('Invalid boolean value for "%s" property, expected one of ( "%s" ) ' , $ bool , implode ('" | " ' , $ expected )));
826
+ throw new \ InvalidArgumentException (sprintf ('Invalid boolean value for "%s" property, expected one of ( "%s" ) ' , $ bool , implode ('" | " ' , $ expected )));
827
827
}
828
828
829
829
for ($ i = 1 ; $ i <= $ nb ; ++$ i ) {
@@ -850,7 +850,7 @@ public function thereAreDummyObjectsWithRelationEmbeddedDummyBoolean(int $nb, st
850
850
$ bool = false ;
851
851
} else {
852
852
$ expected = ['true ' , 'false ' , '1 ' , '0 ' ];
853
- throw new InvalidArgumentException (sprintf ('Invalid boolean value for "%s" property, expected one of ( "%s" ) ' , $ bool , implode ('" | " ' , $ expected )));
853
+ throw new \ InvalidArgumentException (sprintf ('Invalid boolean value for "%s" property, expected one of ( "%s" ) ' , $ bool , implode ('" | " ' , $ expected )));
854
854
}
855
855
856
856
for ($ i = 1 ; $ i <= $ nb ; ++$ i ) {
@@ -980,7 +980,7 @@ public function thereIsAFooEntityWithRelatedBars()
980
980
$ foo = $ this ->buildDummyCar ();
981
981
$ foo ->setName ('mustli ' );
982
982
$ foo ->setCanSell (true );
983
- $ foo ->setAvailableAt (new DateTime ());
983
+ $ foo ->setAvailableAt (new \ DateTime ());
984
984
$ this ->manager ->persist ($ foo );
985
985
986
986
$ bar1 = $ this ->buildDummyCarColor ();
@@ -1146,7 +1146,7 @@ public function createPeopleWithPets()
1146
1146
public function thereAreDummyDateObjectsWithDummyDate (int $ nb )
1147
1147
{
1148
1148
for ($ i = 1 ; $ i <= $ nb ; ++$ i ) {
1149
- $ date = new DateTime (sprintf ('2015-04-%d ' , $ i ), new DateTimeZone ('UTC ' ));
1149
+ $ date = new \ DateTime (sprintf ('2015-04-%d ' , $ i ), new \ DateTimeZone ('UTC ' ));
1150
1150
1151
1151
$ dummy = $ this ->buildDummyDate ();
1152
1152
$ dummy ->dummyDate = $ date ;
@@ -1164,7 +1164,7 @@ public function thereAreDummyDateObjectsWithDummyDate(int $nb)
1164
1164
public function thereAreDummyDateObjectsWithNullableDateIncludeNullAfter (int $ nb )
1165
1165
{
1166
1166
for ($ i = 1 ; $ i <= $ nb ; ++$ i ) {
1167
- $ date = new DateTime (sprintf ('2015-04-%d ' , $ i ), new DateTimeZone ('UTC ' ));
1167
+ $ date = new \ DateTime (sprintf ('2015-04-%d ' , $ i ), new \ DateTimeZone ('UTC ' ));
1168
1168
1169
1169
$ dummy = $ this ->buildDummyDate ();
1170
1170
$ dummy ->dummyDate = $ date ;
@@ -1183,7 +1183,7 @@ public function thereAreDummyDateObjectsWithNullableDateIncludeNullAfter(int $nb
1183
1183
public function thereAreDummyDateObjectsWithNullableDateIncludeNullBefore (int $ nb )
1184
1184
{
1185
1185
for ($ i = 1 ; $ i <= $ nb ; ++$ i ) {
1186
- $ date = new DateTime (sprintf ('2015-04-%d ' , $ i ), new DateTimeZone ('UTC ' ));
1186
+ $ date = new \ DateTime (sprintf ('2015-04-%d ' , $ i ), new \ DateTimeZone ('UTC ' ));
1187
1187
1188
1188
$ dummy = $ this ->buildDummyDate ();
1189
1189
$ dummy ->dummyDate = $ date ;
@@ -1202,7 +1202,7 @@ public function thereAreDummyDateObjectsWithNullableDateIncludeNullBefore(int $n
1202
1202
public function thereAreDummyDateObjectsWithNullableDateIncludeNullBeforeAndAfter (int $ nb )
1203
1203
{
1204
1204
for ($ i = 1 ; $ i <= $ nb ; ++$ i ) {
1205
- $ date = new DateTime (sprintf ('2015-04-%d ' , $ i ), new DateTimeZone ('UTC ' ));
1205
+ $ date = new \ DateTime (sprintf ('2015-04-%d ' , $ i ), new \ DateTimeZone ('UTC ' ));
1206
1206
1207
1207
$ dummy = $ this ->buildDummyDate ();
1208
1208
$ dummy ->dummyDate = $ date ;
@@ -1220,7 +1220,7 @@ public function thereAreDummyDateObjectsWithNullableDateIncludeNullBeforeAndAfte
1220
1220
public function thereAreDummyImmutableDateObjectsWithDummyDate (int $ nb )
1221
1221
{
1222
1222
for ($ i = 1 ; $ i <= $ nb ; ++$ i ) {
1223
- $ date = new DateTimeImmutable (sprintf ('2015-04-%d ' , $ i ), new DateTimeZone ('UTC ' ));
1223
+ $ date = new \ DateTimeImmutable (sprintf ('2015-04-%d ' , $ i ), new \ DateTimeZone ('UTC ' ));
1224
1224
$ dummy = new DummyImmutableDate ();
1225
1225
$ dummy ->dummyDate = $ date ;
1226
1226
0 commit comments