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
Classes which live in the same namespace as the test case aren't able to be mocked via annotations currently (unless you use the fully qualified name). Minimal reproducible example:
namespace Foo;
use Bar\TestClass;
class FooHelperClass
{
}
class FooServiceTest
{
/**
* This annotation works as expected
* @var TestClass
* @Mock
*/
private $barTestClass;
/**
* This annotation does NOT work, Phake does not prepend the Foo\ NS
* @var FooHelperClass
* @Mock
*/
private $fooHelperClass;
// ...
}
The text was updated successfully, but these errors were encountered:
Classes which live in the same namespace as the test case aren't able to be mocked via annotations currently (unless you use the fully qualified name). Minimal reproducible example:
The text was updated successfully, but these errors were encountered: