CommonTest.php 445 B

12345678910111213141516171819
  1. <?php declare(strict_types=1);
  2. use PHPUnit\Framework\TestCase;
  3. // We would have to include the file manually since composer won't be
  4. // able to import it because it's not class.
  5. require_once(dirname(__DIR__) . '/src/common.php');
  6. final class CommonTest extends TestCase
  7. {
  8. public function testUppercase(): void
  9. {
  10. $this->assertEquals(
  11. 'SOME TEXT SAMPLE',
  12. uppercase('Some text sample')
  13. );
  14. }
  15. }