Skip to content

Commit

Permalink
[#ests] - phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Apr 1, 2024
1 parent 7f9bbcd commit 77f9fe8
Show file tree
Hide file tree
Showing 114 changed files with 1,577 additions and 1,749 deletions.
2 changes: 0 additions & 2 deletions tests/unit/Annotations/Adapter/ReadWriteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
use Phalcon\Tests1\Fixtures\Annotations\Adapter\StreamFixture;
use TestClass;

use function dataDir2;
use function outputDir2;
use function safeDeleteFile2;

final class ReadWriteTest extends AbstractAnnotationsAdapterTestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Annotations/AnnotationsFactory/LoadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
use Phalcon\Annotations\Adapter\Apcu;
use Phalcon\Annotations\AnnotationsFactory;
use Phalcon\Config\Config;
use Phalcon\Tests1\Fixtures\Traits\FactoryTrait2;
use Phalcon\Tests\Support\AbstractUnitTestCase;
use Phalcon\Tests1\Fixtures\Traits\FactoryTrait2;

final class LoadTest extends AbstractUnitTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/unit/Annotations/Reader/ParseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Phalcon\Tests\Support\AbstractUnitTestCase;
use ReflectionException;

use function dataDir2;
use function str_replace;

use const DIRECTORY_SEPARATOR;
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/Annotations/Reflection/ConstructTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
use Phalcon\Annotations\Reflection;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;

final class ConstructTest extends AbstractUnitTestCase
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/Annotations/Reflection/GetClassAnnotationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
use Phalcon\Annotations\Reflection;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;

final class GetClassAnnotationsTest extends AbstractUnitTestCase
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
use Phalcon\Annotations\Reflection;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;

final class GetMethodsAnnotationsTest extends AbstractUnitTestCase
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
use Phalcon\Annotations\Reflection;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;

final class GetPropertiesAnnotationsTest extends AbstractUnitTestCase
{
/**
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Application/ConstructTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
use Phalcon\Application\AbstractApplication;
use Phalcon\Di\InjectionAwareInterface;
use Phalcon\Events\EventsAwareInterface;
use Phalcon\Tests1\Fixtures\Application\ApplicationFixture;
use Phalcon\Tests\Support\AbstractUnitTestCase;
use Phalcon\Tests1\Fixtures\Application\ApplicationFixture;

final class ConstructTest extends AbstractUnitTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Application/GetRegisterModulesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
namespace Phalcon\Tests\Unit\Application;

use Phalcon\Application\Exception;
use Phalcon\Tests1\Fixtures\Application\ApplicationFixture;
use Phalcon\Tests\Support\AbstractUnitTestCase;
use Phalcon\Tests1\Fixtures\Application\ApplicationFixture;

final class GetRegisterModulesTest extends AbstractUnitTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Application/GetSetDITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
namespace Phalcon\Tests\Unit\Application;

use Phalcon\Di\FactoryDefault;
use Phalcon\Tests1\Fixtures\Application\ApplicationFixture;
use Phalcon\Tests\Support\AbstractUnitTestCase;
use Phalcon\Tests1\Fixtures\Application\ApplicationFixture;

use function spl_object_hash;

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Application/GetSetDefaultModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

namespace Phalcon\Tests\Unit\Application;

use Phalcon\Tests1\Fixtures\Application\ApplicationFixture;
use Phalcon\Tests\Support\AbstractUnitTestCase;
use Phalcon\Tests1\Fixtures\Application\ApplicationFixture;

final class GetSetDefaultModuleTest extends AbstractUnitTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Application/GetSetEventsManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
namespace Phalcon\Tests\Unit\Application;

use Phalcon\Events\Manager;
use Phalcon\Tests1\Fixtures\Application\ApplicationFixture;
use Phalcon\Tests\Support\AbstractUnitTestCase;
use Phalcon\Tests1\Fixtures\Application\ApplicationFixture;

use function spl_object_hash;

Expand Down
3 changes: 1 addition & 2 deletions tests/unit/Assets/Asset/GetContentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
use Phalcon\Assets\Asset\Css;
use Phalcon\Assets\Asset\Js;
use Phalcon\Assets\Exception;
use Phalcon\Tests\Support\AbstractUnitTestCase;
use Phalcon\Tests1\Fixtures\Assets\AssetExistsFixture;
use Phalcon\Tests1\Fixtures\Assets\AssetGetContentsFixture;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;
use function file_get_contents;

use const PHP_EOL;
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/Assets/Asset/GetRealSourcePathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
use Phalcon\Assets\Asset\Css;
use Phalcon\Assets\Asset\Js;

use function dataDir2;

use const PHP_OS_FAMILY;

final class GetRealSourcePathTest extends AbstractAssetCase
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/Assets/Asset/GetRealTargetPathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
use Phalcon\Assets\Asset\Css;
use Phalcon\Assets\Asset\Js;

use function dataDir2;

final class GetRealTargetPathTest extends AbstractAssetCase
{
/**
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/Assets/Collection/GetRealTargetPathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
use Phalcon\Assets\Collection;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;

/**
* Class GetRealTargetPathTest extends AbstractUnitTestCase
*
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/Assets/Collection/GetSetSourcePathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
use Phalcon\Assets\Collection;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;

/**
* Class GetSetSourcePathTest extends AbstractUnitTestCase
*
Expand Down
1 change: 0 additions & 1 deletion tests/unit/Assets/Filters/CssMin/FilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Phalcon\Assets\Filters\CssMin;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;
use function file_get_contents;

final class FilterTest extends AbstractUnitTestCase
Expand Down
1 change: 0 additions & 1 deletion tests/unit/Assets/Filters/JsMin/FilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Phalcon\Assets\Filters\JsMin;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;
use function file_get_contents;

final class FilterTest extends AbstractUnitTestCase
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/Assets/Manager/AddInlineJsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
use Phalcon\Tests\Fixtures\Traits\DiTrait;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;

final class AddInlineJsTest extends AbstractUnitTestCase
{
use DiTrait;
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/Assets/Manager/AddJsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
use Phalcon\Tests\Fixtures\Traits\DiTrait;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;

final class AddJsTest extends AbstractUnitTestCase
{
use DiTrait;
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/Assets/Manager/OutputJsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@
use Phalcon\Tests\Fixtures\Traits\DiTrait;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;
use function ob_get_clean;
use function ob_start;
use function outputDir2;
use function safeDeleteFile2;
use function sprintf;
use function uniqid;
Expand Down
1 change: 0 additions & 1 deletion tests/unit/Assets/Manager/SetAutoVersionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Phalcon\Tests\Fixtures\Traits\DiTrait;
use Phalcon\Tests\Support\AbstractUnitTestCase;

use function dataDir2;
use function filemtime;

final class SetAutoVersionTest extends AbstractUnitTestCase
Expand Down
15 changes: 4 additions & 11 deletions tests/unit/Autoload/Loader/AbstractLoaderTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,8 @@

namespace Phalcon\Tests\Unit\Autoload\Loader;

use Example\Namespaces\Adapter\Another;
use Example\Namespaces\Adapter\Mongo;
use Phalcon\Autoload\Loader;
use Phalcon\Tests\Fixtures\Traits\LoaderTrait;
use Phalcon\Tests\Support\AbstractUnitTestCase;
use UnitTester;

use function dataDir2;
use function get_include_path;
use function is_array;
use function set_include_path;
Expand All @@ -30,15 +24,14 @@

abstract class AbstractLoaderTestCase extends AbstractUnitTestCase
{
/**
* @var array
*/
protected array $loaders = [];

/**
* @var string
*/
protected string $includePath = '';
/**
* @var array
*/
protected array $loaders = [];

/**
* Executed before each test
Expand Down
Loading

0 comments on commit 77f9fe8

Please sign in to comment.