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

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -