Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jul 31, 2024
1 parent 290f80a commit 67e2e8a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
1 change: 1 addition & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
</rule>
<file>src</file>
<file>tests</file>
<exclude-pattern>tests/support/</exclude-pattern>
</ruleset>
43 changes: 21 additions & 22 deletions tests/unit/IsTagFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

declare(strict_types=1);


namespace Phalcon\Tests\Unit;

use Phalcon\Volt\Compiler;
Expand All @@ -11,27 +10,6 @@

final class IsTagFactoryTest extends TestCase
{
/**
* Tests Phalcon\Mvc\View\Engine\Volt :: isTagFactory()
*
* @dataProvider providerExamples
*
* @author Phalcon Team <[email protected]>
* @since 2024-07-31
*/
public function testMvcViewEngineVoltIsTagFactory(
array $source,
bool $expected
): void {
$parent = new Compiler();
$refected = new ReflectionObject($parent);
$method = $refected->getMethod('isTagFactory');
$method->setAccessible( true );

$actual = $method->invoke($parent, $source);
$this->assertSame($expected, $actual);
}

/**
* @return array[]
*/
Expand Down Expand Up @@ -92,4 +70,25 @@ public static function providerExamples(): array
],
];
}

/**
* Tests Phalcon\Mvc\View\Engine\Volt :: isTagFactory()
*
* @dataProvider providerExamples
*
* @author Phalcon Team <[email protected]>
* @since 2024-07-31
*/
public function testMvcViewEngineVoltIsTagFactory(
array $source,
bool $expected
): void {
$parent = new Compiler();
$refected = new ReflectionObject($parent);
$method = $refected->getMethod('isTagFactory');
$method->setAccessible(true);

$actual = $method->invoke($parent, $source);
$this->assertSame($expected, $actual);
}
}

0 comments on commit 67e2e8a

Please sign in to comment.