Improve phpFunction asserter according to #269.