@@ -50,7 +50,7 @@ echo $response->withArray([
5050use PhpRestfulApiResponse\Tests\unit\Lib\Book;
5151
5252echo $response->withItem(
53- new Book('harry', 'harryosmarsitohang', 'how to be a ninja', 100000, 2017),
53+ new Book('harry', 'harryosmarsitohang@gmail.com ', 'how to be a ninja', 100000, 2017),
5454 new \PhpRestfulApiResponse\Tests\unit\Lib\Transformer\Book,
5555 200 //response code 200
5656);
@@ -63,7 +63,7 @@ echo $response->withItem(
6363 "author" :
6464 {
6565 "name" : " harry" ,
66- "email" : " harryosmarsitohang"
66+ "email" : " harryosmarsitohang@gmail.com "
6767 },
6868 "year" : 2017 ,
6969 "price" : 100000
@@ -77,9 +77,9 @@ use PhpRestfulApiResponse\Tests\unit\Lib\Book;
7777
7878$response->withCollection(
7979 [
80- new Book('harry', 'harryosmarsitohang', 'how to be a ninja', 100000, 2017),
81- new Book('harry', 'harryosmarsitohang', 'how to be a mage', 500000, 2016),
82- new Book('harry', 'harryosmarsitohang', 'how to be a samurai', 25000, 2000),
80+ new Book('harry', 'harryosmarsitohang@gmail.com ', 'how to be a ninja', 100000, 2017),
81+ new Book('harry', 'harryosmarsitohang@gmail.com ', 'how to be a mage', 500000, 2016),
82+ new Book('harry', 'harryosmarsitohang@gmail.com ', 'how to be a samurai', 25000, 2000),
8383 ],
8484 new \PhpRestfulApiResponse\Tests\unit\Lib\Transformer\Book,
8585 200
@@ -93,7 +93,7 @@ $response->withCollection(
9393 "author" :
9494 {
9595 "name" : " harry" ,
96- "email" : " harryosmarsitohang"
96+ "email" : " harryosmarsitohang@gmail.com "
9797 },
9898 "year" : 2017 ,
9999 "price" : 100000
@@ -103,7 +103,7 @@ $response->withCollection(
103103 "author" :
104104 {
105105 "name" : " harry" ,
106- "email" : " harryosmarsitohang"
106+ "email" : " harryosmarsitohang@gmail.com "
107107 },
108108 "year" : 2016 ,
109109 "price" : 500000
@@ -113,7 +113,7 @@ $response->withCollection(
113113 "author" :
114114 {
115115 "name" : " harry" ,
116- "email" : " harryosmarsitohang"
116+ "email" : " harryosmarsitohang@gmail.com "
117117 },
118118 "year" : 2000 ,
119119 "price" : 25000
0 commit comments