partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 8c0be9e0bca0ffcce91af2c7803207212267fad2
parent 8ae280a31f1ce24f440f96d8aa6ad5c548761ee3
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed, 23 Sep 2015 16:51:28 +0200

Assert that response is an object, dump contents if otherwise

Diffstat:
Msrc/PartKeepr/AuthBundle/Tests/UserPreferenceTest.php | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/PartKeepr/AuthBundle/Tests/UserPreferenceTest.php b/src/PartKeepr/AuthBundle/Tests/UserPreferenceTest.php @@ -41,6 +41,8 @@ class UserPreferenceTest extends WebTestCase $response = json_decode($client->getResponse()->getContent()); + $this->assertInternalType("object", $response, var_export($response, true)); + $this->assertObjectHasAttribute("preferenceKey", $response); $this->assertObjectHasAttribute("preferenceValue", $response); $this->assertEquals("foobar", $response->preferenceKey);