Re: Testing methods with parent call

2018-01-03 Thread Lehmann Markus
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()

Re: Testing methods with parent call

2018-01-03 Thread Tomas Kvietkauskas
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

Testing methods with parent call

2018-01-03 Thread Lehmann Markus
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.