- Fixed a small regression bug where if getLastChildPosition() returned $entity->position = (int)0 there would be a bug (this happened only on MySQL interestingly). What would happen is that $position === 0 would be true, thus getNextAfterLastPosition() would return 0, instead of returning 0 + 1. The code now returns a the position casted to an int or null if the searched parent has no child. $position is then tested against null instead of 0.
- Refactored testCreateGivenPosition0 into a data provider
- Converted setRealDepthAttribute() from public to protected (clients should not be able to set the real depth)
Merge pull request #112 from tomzx/fixes/improve-tests

Fixed a small regression in getNextAfterLastPosition/getLastPosition