You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I"d like to see correct error/exceptions that will be clear.
PHPUnit_Framework_Exception: Declaration of Step\Functional\Bar::make($name) should be compatible with Step\Functional\Base::make($name = NULL)
/srv/test/tests/_support/Step/Functional/Bar.php:4
What do you get instead?
currently I get
[InjectionException] Failed to inject dependencies in instance of "FooCest". Class Step\Functional\Bar does not exist
doesn"t reflect real Error
Provide console output if related. Use -vvv mode for more details.
./codecept run functional --debug -vvv
# paste output here
Codeception PHP Testing Framework v2.2.7
Powered by PHPUnit 5.7.4 by Sebastian Bergmann and contributors.
Functional Tests (1) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Modules: \Helper\Functional
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FooCest: Try to test
Signature: FooCest:tryToTest
Test: tests/functional/FooCest.php:tryToTest
Scenario --
ERROR
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Time: 72 ms, Memory: 8.00MB
There was 1 error:
---------
1) FooCest: Try to test
Test tests/functional/FooCest.php:tryToTest
[InjectionException] Failed to inject dependencies in instance of "FooCest". Class Step\Functional\Bar does not exist
ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
Provide test source code if related
generate ./codecept generate:stepobject functional Base
namespaceStep\Functional;
class Base extends \FunctionalTester
{
publicfunctionmake($name = null)
{
$I = $this;
}
}
extend with incorect signature
// paste testnamespaceStep\Functional;
class Bar extends Base
{
publicfunctionmake($name)
{
$I = $this;
}
}
What are you trying to achieve?
I"d like to see correct error/exceptions that will be clear.
What do you get instead?
currently I get
doesn"t reflect real Error
./codecept run functional --debug -vvv
extend with incorect signature
Details
Codeception PHP Testing Framework v2.2.7
composer show
) irrelevantpotential fix
codeception/codeception/src/Codeception/Lib/Di.php
The text was updated successfully, but these errors were encountered: