Closed sapsaldog closed 2 years ago
I think I found a workaround.
I guess this is because of the initial loading mechanism.
add this function to a PHPUnit test class
protected function setUp(): void
{
test::func('\NDS\LeapMarketing\Util\FileFunctions', 'strlen', function($target){
return strlen($target);
});
}
I am not sure I just misunderstand how to use "test:func"
but those tests are not working as I expect
The result of the tests is like below
if I move the testFunc0 to the bottom, the test does work.