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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -