package-template/tests/ExampleClassTest.php

28 lines
570 B
PHP
Raw Normal View History

2024-07-25 21:10:23 +02:00
<?php
declare(strict_types=1);
namespace Chicory\Tests\PackageTemplate;
use Chicory\PackageTemplate\ExampleClass;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
#[CoversClass(ExampleClass::class)]
class ExampleClassTest extends TestCase
{
public ExampleClass $exampleClass;
protected function setUp(): void
{
$this->exampleClass = new ExampleClass();
parent::setUp();
}
public function testExampleClass(): void
{
$this->assertEquals('Hello', $this->exampleClass->sayHello());
}
}