for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace skrtdev\PrototypesTests;
use skrtdev\Prototypes\Exception;
use skrtdev\Prototypes\Prototypes;
use PHPUnit\Framework\TestCase;
use stdClass;
class MainTest extends TestCase
{
public function testNonExistentClass(): void
$this->expectException(Exception::class);
Prototypes::addClassMethod('RandomClass', 'RandomMethod', fn() => true);
}
public function testNonPrototypeableClass(): void
Prototypes::addClassMethod(stdClass::class, 'RandomMethod', fn() => true);
public function testMainClassCannotBeInstantiated(): void
$_ = new Prototypes();
$_