Skip to content

Commit 4cb7322

Browse files
authored
Update FeatureResponseTest.php
Let's check it... I do not have an option to do it locally this time...
1 parent 2950792 commit 4cb7322

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/system/Test/FeatureResponseTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)