WebTestCase is losing its _browser....
Posted: Sun Aug 07, 2005 8:57 pm
I currently have a class hierachy of
WebTestCase (from SimpleTest) <--- DatabaseWebTestCase (adds on sandboxeing) <--- WebAuthTestCase (builds in the required application autnetication).
The DatabaseWebTestCase is my new component. Everything worked with WebAuthTestCase before. Now I'm getting errors on line 704 of web_tester -- apparently WebTestCase's _browser is no longer being initialized.
I am chaining constructors and setUp/tearDown's, I have no member variables masking the underlying ones. Any idess as to what could interfere with _browser in web_tester?
[EDIT:
OK I'm extremely confused now, I've been staring through the WebTestCase code. I can't figure out how it ever worked before. Neither the constructor nor the setUp initialize the _browser member variables. None of the mthods that use it do an lazy initialization. I see that I can explciictly call setBrowser($this->createBrowser()), but I never had to before.... What's missing?]
WebTestCase (from SimpleTest) <--- DatabaseWebTestCase (adds on sandboxeing) <--- WebAuthTestCase (builds in the required application autnetication).
The DatabaseWebTestCase is my new component. Everything worked with WebAuthTestCase before. Now I'm getting errors on line 704 of web_tester -- apparently WebTestCase's _browser is no longer being initialized.
I am chaining constructors and setUp/tearDown's, I have no member variables masking the underlying ones. Any idess as to what could interfere with _browser in web_tester?
[EDIT:
OK I'm extremely confused now, I've been staring through the WebTestCase code. I can't figure out how it ever worked before. Neither the constructor nor the setUp initialize the _browser member variables. None of the mthods that use it do an lazy initialization. I see that I can explciictly call setBrowser($this->createBrowser()), but I never had to before.... What's missing?]