/** * Test the isEmpty method. * * @return void */ public function testIsEmpty() { $json = new JsonArray(['test' => ['key1' => '', 'key2' => 'false']]); $this->assertTrue($json->isEmpty('key1')); $this->assertTrue($json->isEmpty('key2')); $this->assertTrue($json->isEmpty('key3')); }