Skip to content

Commit

Permalink
PHPUnit 10 (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Apr 25, 2023
1 parent 4473f2d commit d3f3fe9
Show file tree
Hide file tree
Showing 36 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -33,7 +33,7 @@
"spiral/core": "^3.8"
},
"require-dev": {
"phpunit/phpunit": "^9.5.20",
"phpunit/phpunit": "^10.1",
"mockery/mockery": "^1.5",
"vimeo/psalm": "^5.9"
},
Expand Down
Expand Up @@ -10,7 +10,7 @@
use Spiral\Stempler\Node\Template;
use Spiral\Stempler\Parser;

abstract class BaseTest extends TestCase
abstract class BaseTestCase extends TestCase
{
protected const GRAMMARS = [
/* GRAMMAR => SYNTAX */
Expand Down
2 changes: 1 addition & 1 deletion tests/Compiler/DynamicTest.php
Expand Up @@ -12,7 +12,7 @@
use Spiral\Stempler\Parser\Syntax\DynamicSyntax;
use Spiral\Stempler\Parser\Syntax\HTMLSyntax;

class DynamicTest extends BaseTest
class DynamicTest extends BaseTestCase
{
protected const RENDERS = [
CoreRenderer::class,
Expand Down
2 changes: 1 addition & 1 deletion tests/Compiler/HTMLTest.php
Expand Up @@ -9,7 +9,7 @@
use Spiral\Stempler\Lexer\Grammar\HTMLGrammar;
use Spiral\Stempler\Parser\Syntax\HTMLSyntax;

class HTMLTest extends BaseTest
class HTMLTest extends BaseTestCase
{
protected const RENDERS = [
CoreRenderer::class,
Expand Down
2 changes: 1 addition & 1 deletion tests/Compiler/RawTest.php
Expand Up @@ -6,7 +6,7 @@

use Spiral\Stempler\Compiler\Renderer\CoreRenderer;

class RawTest extends BaseTest
class RawTest extends BaseTestCase
{
protected const RENDERS = [
CoreRenderer::class,
Expand Down
Expand Up @@ -14,7 +14,7 @@
use Spiral\Stempler\Parser\Syntax\DynamicSyntax;
use Spiral\Stempler\Parser\Syntax\HTMLSyntax;

abstract class BaseTest extends \Spiral\Tests\Stempler\Compiler\BaseTest
abstract class BaseTestCase extends \Spiral\Tests\Stempler\Compiler\BaseTestCase
{
protected const RENDERS = [
CoreRenderer::class,
Expand Down
2 changes: 1 addition & 1 deletion tests/Directive/ConditionalTest.php
Expand Up @@ -6,7 +6,7 @@

use Spiral\Stempler\Directive\ConditionalDirective;

class ConditionalTest extends BaseTest
class ConditionalTest extends BaseTestCase
{
protected const DIRECTIVES = [
ConditionalDirective::class
Expand Down
2 changes: 1 addition & 1 deletion tests/Directive/JsonTest.php
Expand Up @@ -6,7 +6,7 @@

use Spiral\Stempler\Directive\JsonDirective;

class JsonTest extends BaseTest
class JsonTest extends BaseTestCase
{
protected const DIRECTIVES = [
JsonDirective::class
Expand Down
2 changes: 1 addition & 1 deletion tests/Directive/LoopTest.php
Expand Up @@ -6,7 +6,7 @@

use Spiral\Stempler\Directive\LoopDirective;

class LoopTest extends BaseTest
class LoopTest extends BaseTestCase
{
protected const DIRECTIVES = [
LoopDirective::class
Expand Down
2 changes: 1 addition & 1 deletion tests/Directive/OnlyKnownTest.php
Expand Up @@ -13,7 +13,7 @@
use Spiral\Stempler\Parser;
use Spiral\Stempler\Parser\Syntax\HTMLSyntax;

class OnlyKnownTest extends BaseTest
class OnlyKnownTest extends BaseTestCase
{
protected const DIRECTIVES = [
LoopDirective::class
Expand Down
2 changes: 1 addition & 1 deletion tests/Directive/PHPTest.php
Expand Up @@ -6,7 +6,7 @@

use Spiral\Stempler\Directive\PHPDirective;

class PHPTest extends BaseTest
class PHPTest extends BaseTestCase
{
protected const DIRECTIVES = [
PHPDirective::class
Expand Down
4 changes: 2 additions & 2 deletions tests/ExceptionTest.php
Expand Up @@ -13,14 +13,14 @@
use Spiral\Stempler\Exception\ParserException;
use Spiral\Stempler\Exception\SyntaxException;
use Spiral\Stempler\Loader\LoaderInterface;
use Spiral\Tests\Stempler\Transform\BaseTest;
use Spiral\Tests\Stempler\Transform\BaseTestCase;
use Spiral\Stempler\Transform\Finalizer\DynamicToPHP;
use Spiral\Stempler\Transform\Merge\ExtendsParent;
use Spiral\Stempler\Transform\Merge\ResolveImports;
use Spiral\Stempler\Transform\Visitor\DefineAttributes;
use Spiral\Stempler\Transform\Visitor\DefineBlocks;

class ExceptionTest extends BaseTest
class ExceptionTest extends BaseTestCase
{
public function testSimpleLoad(): void
{
Expand Down
Expand Up @@ -8,7 +8,7 @@
use Spiral\Stempler\Lexer\Lexer;
use Spiral\Stempler\Lexer\StringStream;

abstract class BaseTest extends TestCase
abstract class BaseTestCase extends TestCase
{
protected const GRAMMARS = [];

Expand Down
2 changes: 1 addition & 1 deletion tests/Grammar/DynamicTest.php
Expand Up @@ -8,7 +8,7 @@
use Spiral\Stempler\Lexer\Grammar\DynamicGrammar;
use Spiral\Stempler\Lexer\Token;

class DynamicTest extends BaseTest
class DynamicTest extends BaseTestCase
{
protected const GRAMMARS = [DynamicGrammar::class];

Expand Down
2 changes: 1 addition & 1 deletion tests/Grammar/HTMLTest.php
Expand Up @@ -7,7 +7,7 @@
use Spiral\Stempler\Lexer\Grammar\HTMLGrammar;
use Spiral\Stempler\Lexer\Token;

class HTMLTest extends BaseTest
class HTMLTest extends BaseTestCase
{
protected const GRAMMARS = [HTMLGrammar::class];

Expand Down
2 changes: 1 addition & 1 deletion tests/Grammar/InlineTest.php
Expand Up @@ -7,7 +7,7 @@
use Spiral\Stempler\Lexer\Grammar\InlineGrammar;
use Spiral\Stempler\Lexer\Token;

class InlineTest extends BaseTest
class InlineTest extends BaseTestCase
{
protected const GRAMMARS = [InlineGrammar::class];

Expand Down
2 changes: 1 addition & 1 deletion tests/Grammar/MixedTest.php
Expand Up @@ -9,7 +9,7 @@
use Spiral\Stempler\Lexer\Grammar\PHPGrammar;
use Spiral\Stempler\Lexer\Token;

class MixedTest extends BaseTest
class MixedTest extends BaseTestCase
{
protected const GRAMMARS = [PHPGrammar::class, InlineGrammar::class, HTMLGrammar::class];

Expand Down
2 changes: 1 addition & 1 deletion tests/Grammar/PHPTest.php
Expand Up @@ -7,7 +7,7 @@
use Spiral\Stempler\Lexer\Grammar\PHPGrammar;
use Spiral\Stempler\Lexer\Token;

class PHPTest extends BaseTest
class PHPTest extends BaseTestCase
{
protected const GRAMMARS = [PHPGrammar::class];

Expand Down
Expand Up @@ -8,7 +8,7 @@
use Spiral\Stempler\Lexer\StringStream;
use Spiral\Stempler\Lexer\Token;

class RawTest extends BaseTest
class RawTest extends BaseTestCase
{
protected const GRAMMARS = [];

Expand Down
4 changes: 2 additions & 2 deletions tests/SourcemapTest.php
Expand Up @@ -7,14 +7,14 @@
use Spiral\Stempler\Builder;
use Spiral\Stempler\Directive\LoopDirective;
use Spiral\Stempler\Loader\LoaderInterface;
use Spiral\Tests\Stempler\Transform\BaseTest;
use Spiral\Tests\Stempler\Transform\BaseTestCase;
use Spiral\Stempler\Transform\Finalizer\DynamicToPHP;
use Spiral\Stempler\Transform\Merge\ExtendsParent;
use Spiral\Stempler\Transform\Merge\ResolveImports;
use Spiral\Stempler\Transform\Visitor\DefineAttributes;
use Spiral\Stempler\Transform\Visitor\DefineBlocks;

class SourcemapTest extends BaseTest
class SourcemapTest extends BaseTestCase
{
public function testSimpleLoad(): void
{
Expand Down
Expand Up @@ -9,7 +9,7 @@
use Spiral\Stempler\Node\Template;
use Spiral\Stempler\Parser;

abstract class BaseTest extends TestCase
abstract class BaseTestCase extends TestCase
{
protected const GRAMMARS = [
/* GRAMMAR => SYNTAX */
Expand Down
2 changes: 1 addition & 1 deletion tests/Syntax/DynamicTest.php
Expand Up @@ -10,7 +10,7 @@
use Spiral\Stempler\Node\Raw;
use Spiral\Stempler\Parser\Syntax\DynamicSyntax;

class DynamicTest extends BaseTest
class DynamicTest extends BaseTestCase
{
protected const GRAMMARS = [
DynamicGrammar::class => DynamicSyntax::class,
Expand Down
2 changes: 1 addition & 1 deletion tests/Syntax/HTMLTest.php
Expand Up @@ -12,7 +12,7 @@
use Spiral\Stempler\Node\Raw;
use Spiral\Stempler\Parser\Syntax\HTMLSyntax;

class HTMLTest extends BaseTest
class HTMLTest extends BaseTestCase
{
protected const GRAMMARS = [
HTMLGrammar::class => HTMLSyntax::class,
Expand Down
2 changes: 1 addition & 1 deletion tests/Syntax/InlineTest.php
Expand Up @@ -9,7 +9,7 @@
use Spiral\Stempler\Node\Raw;
use Spiral\Stempler\Parser\Syntax\InlineSyntax;

class InlineTest extends BaseTest
class InlineTest extends BaseTestCase
{
protected const GRAMMARS = [
InlineGrammar::class => InlineSyntax::class,
Expand Down
2 changes: 1 addition & 1 deletion tests/Transform/AttributesTest.php
Expand Up @@ -12,7 +12,7 @@
use Spiral\Stempler\Transform\Visitor\DefineAttributes;
use Spiral\Stempler\Transform\Visitor\DefineBlocks;

class AttributesTest extends BaseTest
class AttributesTest extends BaseTestCase
{
public function testAggregatedAttribute(): void
{
Expand Down
Expand Up @@ -23,7 +23,7 @@
use Spiral\Stempler\Parser\Syntax\InlineSyntax;
use Spiral\Stempler\Parser\Syntax\PHPSyntax;

abstract class BaseTest extends TestCase
abstract class BaseTestCase extends TestCase
{
protected function compile(string $source, array $visitors = [], LoaderInterface $loader = null)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Transform/BlocksTest.php
Expand Up @@ -7,7 +7,7 @@
use Spiral\Stempler\Node\Block;
use Spiral\Stempler\Transform\Visitor\DefineBlocks;

class BlocksTest extends BaseTest
class BlocksTest extends BaseTestCase
{
public function testDefineBlock(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Transform/DynamicToPHPTest.php
Expand Up @@ -8,7 +8,7 @@
use Spiral\Stempler\Node\PHP;
use Spiral\Stempler\Transform\Finalizer\DynamicToPHP;

class DynamicToPHPTest extends BaseTest
class DynamicToPHPTest extends BaseTestCase
{
public function testOutput(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Transform/ExtendsTest.php
Expand Up @@ -14,7 +14,7 @@
use Spiral\Stempler\Transform\Visitor\DefineAttributes;
use Spiral\Stempler\Transform\Visitor\DefineBlocks;

class ExtendsTest extends BaseTest
class ExtendsTest extends BaseTestCase
{
public function testNoExtends(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Transform/ImportBundleTest.php
Expand Up @@ -14,7 +14,7 @@
use Spiral\Stempler\Transform\Visitor\DefineAttributes;
use Spiral\Stempler\Transform\Visitor\DefineBlocks;

class ImportBundleTest extends BaseTest
class ImportBundleTest extends BaseTestCase
{
public function testNoImport(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Transform/ImportElementTest.php
Expand Up @@ -15,7 +15,7 @@
use Spiral\Stempler\Transform\Visitor\DefineAttributes;
use Spiral\Stempler\Transform\Visitor\DefineBlocks;

class ImportElementTest extends BaseTest
class ImportElementTest extends BaseTestCase
{
public function testNoImport(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Transform/ImportInlineTest.php
Expand Up @@ -14,7 +14,7 @@
use Spiral\Stempler\Transform\Visitor\DefineAttributes;
use Spiral\Stempler\Transform\Visitor\DefineBlocks;

class ImportInlineTest extends BaseTest
class ImportInlineTest extends BaseTestCase
{
public function testNoImport(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Transform/ImportedStackTest.php
Expand Up @@ -19,7 +19,7 @@
use Spiral\Stempler\Transform\Visitor\DefineHidden;
use Spiral\Stempler\Transform\Visitor\DefineStacks;

class ImportedStackTest extends BaseTest
class ImportedStackTest extends BaseTestCase
{
public function testEmptyStack(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Transform/StackTest.php
Expand Up @@ -12,7 +12,7 @@
use Spiral\Stempler\Transform\Finalizer\TrimRaw;
use Spiral\Stempler\Transform\Visitor\DefineStacks;

class StackTest extends BaseTest
class StackTest extends BaseTestCase
{
public function testEmptyStack(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Transform/TrimRawTest.php
Expand Up @@ -8,7 +8,7 @@
use Spiral\Stempler\Node\Raw;
use Spiral\Stempler\Transform\Finalizer\TrimRaw;

class TrimRawTest extends BaseTest
class TrimRawTest extends BaseTestCase
{
public function testNotEmpty(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/TraverserTest.php
Expand Up @@ -11,12 +11,12 @@
use Spiral\Stempler\Node\HTML\Tag;
use Spiral\Stempler\Node\Raw;
use Spiral\Stempler\Parser\Syntax\HTMLSyntax;
use Spiral\Tests\Stempler\Compiler\BaseTest;
use Spiral\Tests\Stempler\Compiler\BaseTestCase;
use Spiral\Stempler\Traverser;
use Spiral\Stempler\VisitorContext;
use Spiral\Stempler\VisitorInterface;

class TraverserTest extends BaseTest implements VisitorInterface
class TraverserTest extends BaseTestCase implements VisitorInterface
{
protected const RENDERS = [
CoreRenderer::class,
Expand Down

0 comments on commit d3f3fe9

Please sign in to comment.