I'm sending a post request in a test case, and I want to assert that a specific element.
Let's say I have a key x which exists in the response. In this case, I can't say seeJson(['x' => whatever]); because the value is unknown.
For sure, I can't do it with seeJson(['x']);.
Is there a way to solve this?
If it matters:
Laravel: v5.2.31
PHPUnit: 5.3.4
dump()is a void method. If I could use it, i'd have to useob_start()andob_get_clean(). I'll have to check and see if I can use that in a test.failmethod. But I'll have to look into it more.ob_start()in a test :-(