Skip to content
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

Open
martenb opened this issue Sep 25, 2020 · 6 comments
Open

PresenterTesterTestCaseListener implements ITestCaseListener #9

martenb opened this issue Sep 25, 2020 · 6 comments

Comments

@martenb
Copy link

martenb commented Sep 25, 2020

Why is not mangoweb/tester-infrastructure in dependencies?

class PresenterTesterTestCaseListener implements \Mangoweb\Tester\Infrastructure\ITestCaseListener\ITestCaseListener
@JanTvrdik
Copy link
Contributor

Bridges are never in dependencies. It's a Nette pattern.

@martenb
Copy link
Author

martenb commented Sep 25, 2020

Ok, but this library dont work without infrastructure because of undefined interface

@matej21
Copy link
Member

matej21 commented Sep 25, 2020

Can you please show the stack trace? I think nothing should trigger autoloading of PresenterTesterTestCaseListener class.

@martenb
Copy link
Author

martenb commented Sep 25, 2020

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()

@matej21
Copy link
Member

matej21 commented Sep 25, 2020

Oh, I see. Nette tries to load it, because it contains a word "Presenter"..

@JanTvrdik
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants