Files
pie/test/unit/Building/ExtensionBinaryNotFoundTest.php
2026-02-09 16:46:47 +00:00

30 lines
814 B
PHP

<?php
declare(strict_types=1);
namespace Php\PieUnitTest\Building;
use Php\Pie\Building\ExtensionBinaryNotFound;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
#[CoversClass(ExtensionBinaryNotFound::class)]
final class ExtensionBinaryNotFoundTest extends TestCase
{
public function testFromPrePackagedBinary(): void
{
self::assertSame(
'Expected pre-packaged binary does not exist: /foo/bar',
ExtensionBinaryNotFound::fromPrePackagedBinary('/foo/bar')->getMessage(),
);
}
public function testFromExpectedBinary(): void
{
self::assertSame(
'Build complete, but expected /foo/bar does not exist.',
ExtensionBinaryNotFound::fromExpectedBinary('/foo/bar')->getMessage(),
);
}
}