Unit test assignment val ref PHP