Skip to content

Commit

Permalink
add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer committed Dec 23, 2023
1 parent dbd0eb1 commit 7b23380
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/phpunit/Traits/CommandTraitTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace phpunit\Traits;

use PHPUnit\Framework\TestCase;
use PHPUnuhi\PHPUnuhi;
use PHPUnuhi\Traits\CommandTrait;

class CommandTraitTest extends TestCase
{
use CommandTrait;


/**
* @return void
*/
public function testShowHeader(): void
{
$this->expectOutputString("PHPUnuhi Framework, v" . PHPUnuhi::getVersion() . "\nCopyright (c) 2023 Christian Dangl\n\n");

$this->showHeader();
}
}

0 comments on commit 7b23380

Please sign in to comment.