Menu

#182 generatePartial do not call parent::construc()

v1.0 (example)
open
5
2009-09-06
2009-07-13
Joan Ginard
No

when generating a partial mock, constructor of mocked class is overriden, but parent construct is not called within it.

This is fatal becouse users of simpletest can use its clases contructor to initialize things. Like in CakePHP, where Model class initialize behaviours and all other sort of things in the constructor.

Discussion

  • Joan Ginard

    Joan Ginard - 2009-07-13

    call to parent constructor when mocking classes partially. Patch for 1.0.1.

     
  • Perrick Penet

    Perrick Penet - 2009-09-06

    Could you please regenrate your patch against the SVN version of SimpleTest. And also having a faling test case makes it a lot easier to get you parch committed to the trunk.

    Yours,
    Perrick

     
  • Perrick Penet

    Perrick Penet - 2009-09-06
    • assigned_to: nobody --> pp11
     

Log in to post a comment.

MongoDB Logo MongoDB