Markus
Von: Tomas Kvietkauskas
Datum: Mittwoch, 3. Januar 2018 um 17:16
An: "dev-general@lists.oxidforge.org"
Betreff: Re: Testing methods with parent call
Hello Markus,
in short, its possible:
move parent::method() to its own private function e.g.
private function callParentSend()
Hello Markus,
in short, its possible:
move parent::method() to its own private function e.g.
private function callParentSend() {
parent::send();
}
then call callParentSend() in send method
..
$this->callParentSend();
..
then callParentSend() function can be mocked or ignored
-
Tomas
2018
Hello everybody,
First of all, I wish you all a happy new year.
I'm having a testing problem and I hope you can help me with that since I have
not found anything useful so far.
I am currently writing my first tests and I do not know how to deal with the
case if a method calls its parent method.