for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CouchDB\Tests\Encoder;
use CouchDB\Encoder\JSONEncoder;
/**
* @author Markus Bachmann <[email protected]>
*/
class JSONEncoderTest extends \PHPUnit_Framework_TestCase
{
public function testEncode()
$this->assertEquals('{"foo":"bar"}', JSONEncoder::encode(['foo' => 'bar']));
}
public function testDecode()
$this->assertEquals(['foo' => 'bar'], JSONEncoder::decode('{"foo":"bar"}'));