29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-20 11:05:08 +00:00
cms/tests/Unit/UnitTestCase.php
Allon Moritz 1e7527b60e
Fixes various code style issues and integrate PHP CS Fixer into drone (#39745)
* Integrate PHP CS Fixer into drone

* Fix code base

* more verbose

* Ignore psr12 scripts

* Test

* revert

* Ignore also rebase script

* Align array and variable declarations

* Merges

* Fix the no break comment starting with upper case

* Fix alignment in arrays

* Article controller alignment
2023-01-31 11:20:05 +01:00

46 lines
1.1 KiB
PHP

<?php
/**
* @package Joomla.UnitTest
*
* @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @link http://www.phpunit.de/manual/current/en/installation.html
*/
namespace Joomla\Tests\Unit;
use Joomla\Database\DatabaseInterface;
use Joomla\Database\DatabaseQuery;
use Joomla\Database\QueryInterface;
/**
* Base Unit Test case for common behaviour across unit tests
*
* @since 4.0.0
*/
abstract class UnitTestCase extends \PHPUnit\Framework\TestCase
{
/**
* Returns a database query instance.
*
* @param DatabaseInterface $db The database
*
* @return QueryInterface
*
* @since 4.2.0
*/
protected function getQueryStub(DatabaseInterface $db): QueryInterface
{
return new class ($db) extends DatabaseQuery {
public function groupConcat($expression, $separator = ',')
{
}
public function processLimit($query, $limit, $offset = 0)
{
}
};
}
}