阅读背景:

PHPUnit:对非公共变量进行断言

来源:互联网 

Suppose I have a class with a private property and associated public getter and setter. I want to test with PHPUnit that the property gets the correct value after the setter has been used or that the getter returns the correct property. Suppose I have a class with a private property




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: