for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AbterPhp\Framework\Exception;
use PHPUnit\Framework\TestCase;
class ConfigTest extends TestCase
{
public function testConstructCreatesUsefulMessage(): void
$className = '\Foo';
$relatedEnvVars = ['bar' => 'baz'];
$sut = new Config($className, $relatedEnvVars);
$this->assertSame(
'Insufficient configs found while resolving dependency: \Foo (Related environment variables: baz)',
$sut->getMessage()
);
}