mercredi 15 mars 2017

phpunit test class which extends another class

I'm new to phpunit (and any other test driven development). I've setup phpunit using composer and so far everything is alright.

I'm trying to following their tutorial which can be found here: http://ift.tt/1ITINMe

Here comes my problem: I have a class which looks like this:

class MyClassName
    extends CoreClass
    implements ClassName

In their example they do it like this:

class MyClassName
    extends TestCase

But that won't work for me since I have to extend another class as well. How does this work?

Aucun commentaire:

Enregistrer un commentaire