From 1bb997e00c81b17503b44c64c757bdb85f64c9ce Mon Sep 17 00:00:00 2001 From: roxblnfk Date: Wed, 30 Sep 2026 00:24:36 +0400 Subject: [PATCH 1/2] chore(deps): bump testo packages Assisted-By: Claude Opus 5.5 --- composer.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index baef10a..4b13093 100644 --- a/composer.json +++ b/composer.json @@ -21,11 +21,11 @@ }, "require-dev": { "symfony/var-dumper": "^8.1.0", - "testo/assert": "^0.1.9", - "testo/codecov": "^0.1.11", - "testo/data": "^0.1.6", - "testo/test": "^0.1.4", - "testo/testo": "^0.10.29" + "testo/assert": "^0.1.17", + "testo/codecov": "^0.2.3", + "testo/data": "^0.1.10", + "testo/test": "^0.1.8", + "testo/testo": "^0.10.54" }, "autoload": { "psr-4": { From 12f77bc94cc2ec158e7d80dc244baba6be00affa Mon Sep 17 00:00:00 2001 From: roxblnfk Date: Thu, 1 Oct 2026 13:52:37 +0400 Subject: [PATCH 2/2] fix(testo): add source directory to ApplicationConfig and improve error message assertions --- testo.php | 1 + tests/Dic/Internal/Builder/SingletonStrategyTest.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/testo.php b/testo.php index 2ac8ec8..a0918ea 100644 --- a/testo.php +++ b/testo.php @@ -6,6 +6,7 @@ use Testo\Application\Config\SuiteConfig; return new ApplicationConfig( + src: ['src'], suites: [ new SuiteConfig( name: 'All', diff --git a/tests/Dic/Internal/Builder/SingletonStrategyTest.php b/tests/Dic/Internal/Builder/SingletonStrategyTest.php index f96af2e..e3028aa 100644 --- a/tests/Dic/Internal/Builder/SingletonStrategyTest.php +++ b/tests/Dic/Internal/Builder/SingletonStrategyTest.php @@ -93,8 +93,9 @@ public function failsOnTheFirstOffendingDependency(): void LifetimeStrategy::Singleton->resolve(ref(), $dependencies); Assert::fail('Expected a BuildError to be thrown.'); } catch (BuildError $error) { - Assert::true(str_contains($error->getMessage(), '$first')); - Assert::false(str_contains($error->getMessage(), '$second')); + Assert::string($error->getMessage()) + ->contains('$first') + ->notContains('$second'); } }