-
Notifications
You must be signed in to change notification settings - Fork 24
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
Redeclared class error #54
Comments
Here's a copy of my composer.json file. (http://pastebin.com/2GaZk17a) Steps to create error:
Here's the full error message including the call stack. (http://pastebin.com/vcM91vYj) Things I did to "solve" the problem (which didn't solve anything):
You see the things I did are quite useless since I have really no idea how to fix it(I'm noob, sorry) |
Hello @vernard I have followed the steps you provided but unfortunately I can not replicate the issue. If you have time could you try again ? We have made some changes to MageSpec to enable support for code pools and automatic module generation that is a real benefit to users. If the problem still persists on your system please feel free to reach out to me and we can dig a little deeper to resolve the issue. |
@jamescowie Sure. I really appreciate your help. I did all of these again from scratch and the problem still persists. There's one thing I did that took out the error. I commented line 106 of file \vendor\magetest\magento-phpspec-extension\src\MageTest\PhpSpec\MagentoExtension\Autoloader\MageLoader.php
Then the redeclared class error was gone. Cheers with the community code pool support and automatic module generation. I hope that I'll be able to use do BDD soon. |
Thats really strange. Are there any files within Spec already ? I would like to get to the bottom of this issue as its one that I cant replicate at all. Perhaps we could meet up on Skype or Hangouts when you have 30 mins free to investigate this more. |
Hi @vernard, Feel free to re-open if this is not the case. |
Right, I was on Windows environment. Thank you for cleaning this repo. |
No problem 👍 sorry for the late reply. |
I followed the basic usage part in the README. It was nice and clear until i run "bin/phpspec run". It showed this error:
PHP Fatal error: Cannot redeclare class spec\Magespec_Reviews_Model_ProductSpec in /var/ww
w/Spec\htdocs\app\code\local\Magespec\Reviews\Model\ProductSpec.php on line 14
I'm using the version 2.0.0. Error still exists when I changed the version to "dev-develop".
Please help.
The text was updated successfully, but these errors were encountered: