<?php
/**
 * @author           Pierre-Henry Soria <hello@ph7cms.com>
 * @copyright        (c) 2017, Pierre-Henry Soria. All Rights Reserved.
 * @license          GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package          PH7 / Test / Unit / Framework / Ajax
 */

namespace PH7\Test\Unit\Framework\Ajax;

use PH7\Framework\Ajax\Ajax;

class AjaxTest extends \PHPUnit_Framework_TestCase
{
    public function testJsonMsg()
    {
        $sActualResult = Ajax::jsonMsg(1, 'Yaaay!');
        $this->assertEquals('{"status":1,"txt":"Yaaay!"}', $sActualResult);
    }
 }
Add unit test for Ajax class
Add unit test for Ajax class
