sasyk/codewars-testkit

Codewars tool, to solve and test katas

Maintainers

Package info

github.com/Lurk150rus/codewars-testkit

pkg:composer/sasyk/codewars-testkit

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-05-14 10:29 UTC

This package is auto-updated.

Last update: 2026-05-14 11:55:11 UTC


README

Ultra lightweight PHP testing framework for Codewars and kata solving.

Installation

composer require sasyk/codewars-testkit

Usage

test.php

<?php

require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/test-test.php';

(new MyTest)();

function solve()
{
    return 'hello';
}

test-test.php

<?php

use KTest\TestCase;

class MyTest extends TestCase
{
    public function testExample(): void
    {
        $this->assertSame(
            'hello',
            solve()
        );
    }
}

Features

  • Colored terminal output
  • Assertions
  • Lightweight
  • No configuration
  • Perfect for Codewars / kata

License

MIT