mirror of
https://github.com/macintoshplus/yaml-migrations.git
synced 2026-03-24 00:42:18 +01:00
22 lines
402 B
PHP
22 lines
402 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace YamlMigrate\Tests;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use YamlMigrate\Migrate;
|
|
|
|
class fileNotInConfigTest extends TestCase
|
|
{
|
|
public function testFileNotInConfig(): void
|
|
{
|
|
$migrate = new Migrate('config.yaml');
|
|
$migrate->setSilent(true);
|
|
|
|
$this->expectException(\Throwable::class);
|
|
|
|
$migrate->process('foo.yaml');
|
|
}
|
|
}
|