--TEST-- SimpleXML: overridden count() method --SKIPIF-- --FILE-- asdfghjk'; $sxe = new SXE($str); var_dump(count($sxe)); ?> --EXPECT-- Called Count! int(2)