Are you sure the assignment to $classGenerator is correct as $this->createMock(\Lamin...\ClassGenerator::class) (which targets PHPUnit\Framework\TestCase::createMock()) seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
Are you sure the assignment to $methodGenerator is correct as $this->createMock(\Lamin...MethodGenerator::class) (which targets PHPUnit\Framework\TestCase::createMock()) seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
The method once() does not seem to exist on object<ProxyManagerTest\...lassGeneratorUtilsTest>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
The method never() does not seem to exist on object<ProxyManagerTest\...lassGeneratorUtilsTest>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
36
->method('addMethodFromGenerator');
37
38
$reflection = new ReflectionClass(ClassWithFinalMethods::class);
The method assertFalse() does not seem to exist on object<ProxyManagerTest\...lassGeneratorUtilsTest>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
41
}
42
43
public function testCanAddANotFinalMethod() : void
Are you sure the assignment to $classGenerator is correct as $this->createMock(\Lamin...\ClassGenerator::class) (which targets PHPUnit\Framework\TestCase::createMock()) seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
Are you sure the assignment to $methodGenerator is correct as $this->createMock(\Lamin...MethodGenerator::class) (which targets PHPUnit\Framework\TestCase::createMock()) seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
The method once() does not seem to exist on object<ProxyManagerTest\...lassGeneratorUtilsTest>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
The method once() does not seem to exist on object<ProxyManagerTest\...lassGeneratorUtilsTest>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
55
->method('addMethodFromGenerator');
56
57
$reflection = new ReflectionClass(BaseClass::class);
The method assertTrue() does not seem to exist on object<ProxyManagerTest\...lassGeneratorUtilsTest>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.