aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/UnitTestCase.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-01-07 19:46:14 +0100
committerHarald Eilertsen <haraldei@anduin.net>2024-01-07 20:24:52 +0100
commit0a31fc176c01e8ef85a20dfc54ffc18035e0686a (patch)
treebe5008a9b7f94405c952249e473b91a185c99da6 /tests/unit/UnitTestCase.php
parent659a8c967cff97e81c3b8defe047437838b7dff4 (diff)
downloadvolse-hubzilla-0a31fc176c01e8ef85a20dfc54ffc18035e0686a.tar.gz
volse-hubzilla-0a31fc176c01e8ef85a20dfc54ffc18035e0686a.tar.bz2
volse-hubzilla-0a31fc176c01e8ef85a20dfc54ffc18035e0686a.zip
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!
Diffstat (limited to 'tests/unit/UnitTestCase.php')
-rw-r--r--tests/unit/UnitTestCase.php3
1 files changed, 1 insertions, 2 deletions
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)