2015-07-15 16:24 GMT+08:00 Nikolay Sivov bunglehead@gmail.com:
No, helper like that won't work, because the point is to check how all node types work, not just elements. What I meant is to have a separate test_* function in START_TEST() that will load a document with all node types you need and iterating through them call get_ownderDocument.
Hi Nikolay, Do you mean an iteration like that? Have I tested all the included nodes? Also, we already have a helper function: test_get_ownerDocument() Should I use this?
My draft patch has been attached.
Thanks