@@ -94,13 +94,13 @@ public function testConstructor()
9494
9595 $ mock ->__construct ('' ,
9696 [
97- 'company ' => constant ('FLEXIBEE_COMPANY ' ),
98- 'url ' => constant ('FLEXIBEE_URL ' ),
99- 'user ' => constant ('FLEXIBEE_LOGIN ' ),
100- 'password ' => constant ('FLEXIBEE_PASSWORD ' ),
101- 'debug ' => true ,
102- 'prefix ' => 'c ' ,
103- 'evidence ' => $ evidence ]);
97+ 'company ' => constant ('FLEXIBEE_COMPANY ' ),
98+ 'url ' => constant ('FLEXIBEE_URL ' ),
99+ 'user ' => constant ('FLEXIBEE_LOGIN ' ),
100+ 'password ' => constant ('FLEXIBEE_PASSWORD ' ),
101+ 'debug ' => true ,
102+ 'prefix ' => 'c ' ,
103+ 'evidence ' => $ evidence ]);
104104 }
105105
106106 /**
@@ -242,8 +242,8 @@ public function testObject2array()
242242 $ this ->assertNull ($ this ->object ->object2array (new \stdClass ()));
243243 $ this ->assertEquals (
244244 [
245- 'item ' => 1 ,
246- 'arrItem ' => ['a ' , 'b ' => 'c ' ]
245+ 'item ' => 1 ,
246+ 'arrItem ' => ['a ' , 'b ' => 'c ' ]
247247 ]
248248 , $ this ->object ->object2array (new \Test \ObjectForTesting ()));
249249 }
@@ -888,6 +888,16 @@ public function testFlexiUrl()
888888 $ this ->object ->flexiUrl (['a ' => true , 'b ' => false ], 'or ' ));
889889 $ this ->assertEquals ("a is null and b is not null " ,
890890 $ this ->object ->flexiUrl (['a ' => null , 'b ' => '!null ' ], 'and ' ));
891+
892+ $ begin = new \DateTime ('2018-08-01 ' );
893+ $ end = new \DateTime ('2018-08-31 ' );
894+ $ end = $ end ->modify ('+1 day ' );
895+
896+ $ interval = new \DateInterval ('P1D ' );
897+ $ daterange = new \DatePeriod ($ begin , $ interval , $ end );
898+
899+ $ this ->assertEquals ("a eq '2018-10-25' and b between '2018-08-01' '2018-09-01' " ,
900+ $ this ->object ->flexiUrl (['a ' => new \DateTime ('25-10-2018 ' ), 'b ' => $ daterange ]));
891901 }
892902
893903 /**
0 commit comments