CoreFiles by mySites.guru
ErrorHandlerTest.php27 lines, 597 bytes, from Joomla_4.1.2-Stable-Full_Package.zip
Raw History Compare with 4.1.1
md5
d233097c1d65e655c8ee6948c665ae7b
sha1
aced8c4924fe0c35546447e26b98549b4cb028ea
sha256
e2c092ba2cf678ef90b1a05d20b6d1352d926ccb2d98ad0370d505acb0cf84e0
<?php

/*
 * This file is part of JSON-API.
 *
 * (c) Toby Zerner <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Tobscure\Tests\JsonApi;

use Exception;
use Tobscure\JsonApi\ErrorHandler;

class ErrorHandlerTest extends AbstractTestCase
{
    public function test_it_should_throw_an_exception_when_no_handlers_are_present()
    {
        $this->setExpectedException('RuntimeException');

        $handler = new ErrorHandler;

        $handler->handle(new Exception);
    }
}

The same content is in 9 releases, Joomla 4.1.0-rc1 to 4.1.2. See them all, or every version of this file.