many changes

updated composer.json to user psr-4 autoloader
updated .htaccess to point to the correct file
Rewrite of most of the project
This commit is contained in:
2019-03-14 23:24:04 +01:00
parent 17f223d517
commit e4d59be18c
23 changed files with 147 additions and 364 deletions

0
tests/.gitkeep Normal file
View File

View File

@ -1,34 +0,0 @@
<?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
final class TestEnum extends TestCase {
public function testInstantiateEnum(): void {
$this->expectException(Error::class);
new Enum();
}
public function testValidOption(): void {
$this->assertEquals(
0,
OptionTypes::String
);
}
public function testIsValidName(): void {
$this->assertEquals(
true,
OptionTypes::isValidName("String")
);
$this->assertEquals(
false,
OptionTypes::isValidName("Sting")
);
$this->assertEquals(
false,
OptionTypes::isValidName("string", true)
);
}
}