PhpGt/Dom

Facade: Race condition in unit test

g105b opened this issue · 1 comments

g105b commented

I'm really confused by this one... I have to add @runsInSeparateProcess to a single test for it to pass.

e2f3996#diff-1aa40be7fe3508e1363a22df7f7ad5cc4ff33265966e25e059ade2683abe1d52R430

Without this, the test fails on this line:

$object = $node->gtDocument;

The error is that gtDocument is not defined yet - but this is the first thing set in the constructor, so I can't see how it can't be defined. Also, if I run the whole test case with xdebug enabled, everything passes. This indicates to me that it's a race condition - maybe some shared memory in DOM or something like that?

All round, very confusing.

g105b commented

No more facade!