mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-19 11:31:36 +02:00
Fix: isJSON now returns false for empty strings
This commit is contained in:
@@ -2066,7 +2066,13 @@ class StringyTestCase extends PHPUnit_Framework_TestCase
|
||||
public function isJsonProvider()
|
||||
{
|
||||
return array(
|
||||
array(true, ''),
|
||||
array(false, ''),
|
||||
array(false, ' '),
|
||||
array(true, 'null'),
|
||||
array(true, 'true'),
|
||||
array(true, 'false'),
|
||||
array(true, '[]'),
|
||||
array(true, '{}'),
|
||||
array(true, '123'),
|
||||
array(true, '{"foo": "bar"}'),
|
||||
array(false, '{"foo":"bar",}'),
|
||||
|
Reference in New Issue
Block a user