File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -219,18 +219,18 @@ public function testEmptyJSON()
219219 $ formatter = $ config ->getFormatter ('application/json ' );
220220
221221 // this should be "" - json_encode('');
222- $ this ->assertEquals ("" , $ this ->feature ->getJSON ());
222+ $ this ->assertEquals (' "" ' , $ this ->feature ->getJSON ());
223223 }
224224
225225 public function testFalseJSON ()
226226 {
227227 $ this ->getFeatureResponse ('<h1>Hello World</h1> ' );
228- $ this ->response ->setJSON ('' );
228+ $ this ->response ->setJSON (false );
229229 $ config = new \Config \Format ();
230230 $ formatter = $ config ->getFormatter ('application/json ' );
231231
232232 // this should be FALSE - json_encode(false)
233- $ this ->assertFalse ( $ this ->feature ->getJSON ());
233+ $ this ->assertEquals ( ' false ' , $ this ->feature ->getJSON ());
234234 }
235235
236236 public function testTrueJSON ()
@@ -241,7 +241,7 @@ public function testTrueJSON()
241241 $ formatter = $ config ->getFormatter ('application/json ' );
242242
243243 // this should be TRUE - json_encode(true)
244- $ this ->assertTrue ( $ this ->feature ->getJSON ());
244+ $ this ->assertEquals ( ' true ' , $ this ->feature ->getJSON ());
245245 }
246246
247247 public function testInvalidJSON ()
You can’t perform that action at this time.
0 commit comments