0
我是新来的phpunit(和任何其他测试驱动开发)。 我已经设置phpunit使用作曲家,迄今为止一切都很好。phpunit测试类扩展了另一个类
我想跟随他们的教程,可以在这里找到: https://phpunit.de/getting-started.html
这里来我的问题: 我有一个类,它看起来像这样:
class MyClassName
extends CoreClass
implements ClassName
在他们的榜样,他们这样做:
class MyClassName
extends TestCase
但这不会对我工作,因为我必须扩展另一个类为好。 这是如何工作的?
我只想测试MyClassName
,我没有构建核心,所以我想留在那里。