@@ -74,7 +74,7 @@ public function batch_function_must_return_a_promise_not_null()
7474
7575 /** @var DataLoaderException $exception */
7676 $ expectedExceptionMessage = 'leinonen\DataLoader\DataLoader must be constructed with a function which accepts an array of keys '
77- . 'and returns a Promise which resolves to an array of values not return a Promise: NULL. ' ;
77+ . 'and returns a Promise which resolves to an array of values the function returned NULL. ' ;
7878 $ this ->assertInstanceOf (DataLoaderException::class, $ exception );
7979 $ this ->assertSame ($ expectedExceptionMessage , $ exception ->getMessage ());
8080 }
@@ -98,7 +98,7 @@ public function batch_function_must_return_a_promise_not_a_array()
9898
9999 /** @var DataLoaderException $exception */
100100 $ expectedExceptionMessage = 'leinonen\DataLoader\DataLoader must be constructed with a function which accepts an array of keys '
101- . 'and returns a Promise which resolves to an array of values not return a Promise: array. ' ;
101+ . 'and returns a Promise which resolves to an array of values the function returned array. ' ;
102102 $ this ->assertInstanceOf (DataLoaderException::class, $ exception );
103103 $ this ->assertSame ($ expectedExceptionMessage , $ exception ->getMessage ());
104104 }
@@ -122,7 +122,7 @@ public function batch_function_must_return_a_promise_not_a_value()
122122
123123 /** @var DataLoaderException $exception */
124124 $ expectedExceptionMessage = 'leinonen\DataLoader\DataLoader must be constructed with a function which accepts an array of keys '
125- . 'and returns a Promise which resolves to an array of values not return a Promise: integer. ' ;
125+ . 'and returns a Promise which resolves to an array of values the function returned integer. ' ;
126126 $ this ->assertInstanceOf (DataLoaderException::class, $ exception );
127127 $ this ->assertSame ($ expectedExceptionMessage , $ exception ->getMessage ());
128128 }
@@ -147,7 +147,7 @@ function ($keys) {
147147
148148 /** @var DataLoaderException $exception */
149149 $ expectedExceptionMessage = 'leinonen\DataLoader\DataLoader must be constructed with a function which accepts an array of keys '
150- . 'and returns a Promise which resolves to an array of values not return a Promise: object. ' ;
150+ . 'and returns a Promise which resolves to an array of values the function returned object. ' ;
151151 $ this ->assertInstanceOf (DataLoaderException::class, $ exception );
152152 $ this ->assertSame ($ expectedExceptionMessage , $ exception ->getMessage ());
153153 }
0 commit comments