for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Dgame\Ensurance\Exception\EnsuranceException;
use PHPUnit\Framework\TestCase;
use function Dgame\Ensurance\ensure;
class BooleanEnsuranceTest extends TestCase
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public function testIsTrue()
ensure((2 * 3) === (3 * 2))->isTrue();
$this->expectException(EnsuranceException::class);
ensure((2 * 2) === (3 * 2))->isTrue();
}
public function testIsFalse()
ensure((2 * 3) === (3 * 3))->isFalse();
ensure((2 * 3) === (3 * 2))->isFalse();
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.