mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
chore: fix phpstan bleeding edge errors
This commit is contained in:
@@ -29,7 +29,6 @@ final class BladeTemplateEngineTest extends TestCase
|
||||
|
||||
$result = $bladeTemplateEngine->render($name, $context);
|
||||
|
||||
$this->assertIsString($result);
|
||||
$this->assertSame('rendered data', $result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ final class IdStampTest extends TestCase
|
||||
{
|
||||
// Test with null ID
|
||||
$ifStamp = new IdStamp();
|
||||
$this->assertIsString($ifStamp->getId());
|
||||
|
||||
// Test with known ID
|
||||
$knownId = 'KnownID123';
|
||||
@@ -37,7 +36,6 @@ final class IdStampTest extends TestCase
|
||||
{
|
||||
$ifStamp = new IdStamp();
|
||||
$arrayRepresentation = $ifStamp->toArray();
|
||||
$this->assertIsArray($arrayRepresentation);
|
||||
$this->assertArrayHasKey('id', $arrayRepresentation);
|
||||
$this->assertSame($arrayRepresentation['id'], $ifStamp->getId());
|
||||
}
|
||||
|
||||
@@ -34,7 +34,6 @@ final class PluginStampTest extends TestCase
|
||||
|
||||
$result = $pluginStamp->toArray();
|
||||
|
||||
$this->assertIsArray($result);
|
||||
$this->assertCount(1, $result);
|
||||
$this->assertArrayHasKey('plugin', $result);
|
||||
$this->assertSame($plugin, $result['plugin']);
|
||||
|
||||
@@ -17,7 +17,6 @@ final class MessagesTest extends TestCase
|
||||
public function testGet(string $language, bool $empty): void
|
||||
{
|
||||
$actual = Messages::get($language);
|
||||
$this->assertIsArray($actual);
|
||||
$this->assertSame($empty, empty($actual));
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,6 @@ final class SessionBagTest extends TestCase
|
||||
|
||||
$result = $this->sessionBag->get();
|
||||
|
||||
$this->assertIsArray($result);
|
||||
$this->assertInstanceOf(Envelope::class, $result[0]);
|
||||
}
|
||||
|
||||
@@ -78,7 +77,6 @@ final class SessionBagTest extends TestCase
|
||||
|
||||
$result = $this->sessionBag->get();
|
||||
|
||||
$this->assertIsArray($result);
|
||||
$this->assertInstanceOf(Envelope::class, $result[0]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,6 @@ final class FlasherTwigExtensionTest extends MockeryTestCase
|
||||
{
|
||||
$functions = $this->extension->getFunctions();
|
||||
|
||||
$this->assertIsArray($functions);
|
||||
$this->assertCount(1, $functions);
|
||||
$this->assertInstanceOf(TwigFunction::class, $functions[0]);
|
||||
$this->assertSame('flasher_render', $functions[0]->getName());
|
||||
|
||||
Reference in New Issue
Block a user