From 6df0f4f307762df45aa81a0c6a9e1b85ea472a5f Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 31 Dec 2023 17:42:04 +0000 Subject: [PATCH] put runtime-generated data into data/ --- .php-cs-fixer.dist.php | 3 ++- core/testcase.php | 2 +- tests/phpunit.xml | 8 +++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 8a4d93aa..9fd655e9 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -14,4 +14,5 @@ return $_phpcs_config->setRules([ 'array_syntax' => ['syntax' => 'short'], ]) ->setFinder($_phpcs_finder) -; \ No newline at end of file + ->setCacheFile("data/php-cs-fixer.cache") +; diff --git a/core/testcase.php b/core/testcase.php index cf19d48e..1d62e0ad 100644 --- a/core/testcase.php +++ b/core/testcase.php @@ -52,7 +52,7 @@ if(class_exists("\\PHPUnit\\Framework\\TestCase")) { $_tracer->end(); # test $_tracer->end(); # $this->getName() $_tracer->clear(); - $_tracer->flush("tests/trace.json"); + $_tracer->flush("data/test-trace.json"); } public static function tearDownAfterClass(): void diff --git a/tests/phpunit.xml b/tests/phpunit.xml index d3420dc4..de47f9ef 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -1,5 +1,11 @@ - +