-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PresenterTesterTestCaseListener implements ITestCaseListener #9
Comments
Bridges are never in dependencies. It's a Nette pattern. |
Ok, but this library dont work without infrastructure because of undefined interface |
Can you please show the stack trace? I think nothing should trigger autoloading of PresenterTesterTestCaseListener class. |
I just tried to add it to my project... services:
- Mangoweb\Tester\PresenterTester\PresenterTester(baseUrl: https://test.dev) -- FAILED: Services/NotificationServiceTest.phpt
Error: Interface 'Mangoweb\Tester\Infrastructure\ITestCaseListener' not found
in Bridges/Infrastructure/PresenterTesterTestCaseListener.php(11)
in vendor/composer/ClassLoader.php(444) include()
in vendor/composer/ClassLoader.php(322) Composer\Autoload\includeFile()
in [internal function]Composer\Autoload\ClassLoader->loadClass()
in [internal function]spl_autoload_call()
in Bridges/ApplicationDI/ApplicationExtension.php(184) class_exists()
in Bridges/ApplicationDI/ApplicationExtension.php(122) Nette\Bridges\ApplicationDI\ApplicationExtension->findPresenters()
in src/DI/Compiler.php(259) Nette\Bridges\ApplicationDI\ApplicationExtension->beforeCompile()
in src/DI/Compiler.php(202) Nette\DI\Compiler->processBeforeCompile()
in src/DI/ContainerLoader.php(117) Nette\DI\Compiler->compile()
in src/DI/ContainerLoader.php(79) Nette\DI\ContainerLoader->generate()
in src/DI/ContainerLoader.php(44) Nette\DI\ContainerLoader->loadFile()
in src/Bootstrap/Configurator.php(248) Nette\DI\ContainerLoader->load()
in src/Bootstrap/Configurator.php(226) Nette\Configurator->loadContainer()
in Cases/Services/NotificationServiceTest.phpt(85) Nette\Configurator->createContainer() |
Oh, I see. Nette tries to load it, because it contains a word "Presenter".. |
set |
Why is not mangoweb/tester-infrastructure in dependencies?
The text was updated successfully, but these errors were encountered: