From 0a31fc176c01e8ef85a20dfc54ffc18035e0686a Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 7 Jan 2024 19:46:14 +0100 Subject: Remove behat as dev dependency. As the Symphony\Yaml stuff disappeared with behat, we need another way to load read the yaml files with database fixtures for the integration tests. As the php yaml extension is not distributed with PHP by default, this creates it as another dev dependency! --- tests/unit/UnitTestCase.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/unit/UnitTestCase.php b/tests/unit/UnitTestCase.php index 2ef414cb5..b98845985 100644 --- a/tests/unit/UnitTestCase.php +++ b/tests/unit/UnitTestCase.php @@ -23,7 +23,6 @@ namespace Zotlabs\Tests\Unit; use PHPUnit\Framework\TestCase; -use Symfony\Component\Yaml\Yaml; /* * Make sure global constants and the global App object is available to the @@ -115,7 +114,7 @@ class UnitTestCase extends TestCase { private function loadFixture($file) : void { $table_name = basename($file, '.yml'); - $this->fixtures[$table_name] = Yaml::parseFile($file)[$table_name]; + $this->fixtures[$table_name] = yaml_parse_file($file)[$table_name]; //echo "\n[*] Loaded fixture '{$table_name}':\n"; // . print_r($this->fixtures[$table_name], true) -- cgit v1.2.3