php - Making sure expected methods are callable -
so testing class , expecting call method dependency:
$usermock = mockery::mock('user'); $usermock->shouldreceive('updatetimestamps')->once()->andreturn($usermock);
sure test passed, problem didn't realize updatetimestamps
private method! if test passed fail if try manually. there way make sure methods give expectations callable?
the php reflection class allow test this.
Comments
Post a Comment