generated from chicory/package-template
This commit is contained in:
parent
18b7bdeb60
commit
0686f22a19
|
@ -2,7 +2,6 @@ name: Run code tests
|
|||
run-name: Run code tests
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
Run-code-test:
|
|
@ -1,13 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Chicory\PackageTemplate;
|
||||
|
||||
class ExampleClass
|
||||
{
|
||||
public function sayHello(): string
|
||||
{
|
||||
return 'Hello';
|
||||
}
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
<?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());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user