elliotchance / concise

✅ Concise is test framework for using plain English and minimal code, built on PHPUnit.
MIT License
45 stars 3 forks source link

has values does not handle nested values #265

Closed elliotchance closed 9 years ago

elliotchance commented 9 years ago

At the moment its using in_array which isn't sophisticated enough to handle this:

   [
     {
       "topic":"orders/completed",
       "address":"http://localhost",
       "format":"xml"
     },
     {
       "topic":"orders/completed",
       "address":"http://other",
       "format":"json"
     }
   ] has values [
     {
       "topic":"orders/completed",
       "address":"http://localhost",
       "format":"xml"
     },
     {
       "topic":"orders/completed",
       "address":"http://other",
       "format":"json"
     }
   ]
elliotchance commented 9 years ago

Cannot reproduce.