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": { 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'); } }