sasyk / codewars-testkit
Codewars tool, to solve and test katas
1.0.0
2026-05-14 10:29 UTC
Requires
- php: >=8.0
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