src/DataProvider/InvalidJsonString.php
<?php
/*
* Copyright (c) 2016 Refinery29, Inc.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Refinery29\Test\Util\DataProvider;
class InvalidJsonString extends InvalidString
{
public function values()
{
$faker = $this->getFaker();
return \array_merge(parent::values(), [
'string' => $faker->sentence,
'string-invalid-json' => \sprintf(
'{"%s"}',
$faker->sentence
),
]);
}
}