PHP code example of sasyk / codewars-testkit
1. Go to this page and download the library: Download sasyk/codewars-testkit library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sasyk / codewars-testkit example snippets
e_once __DIR__ . '/test-test.php';
(new MyTest)();
function solve()
{
return 'hello';
}
use KTest\TestCase;
class MyTest extends TestCase
{
public function testExample(): void
{
$this->assertSame(
'hello',
solve()
);
}
}