Add phpunit tests for pcre functions

Time: 463 ms, Memory: 24.25Mb
OK (465 tests, 471 assertions)

Change-Id: Ib47e20cb7618bc6ee40f06f89960172113956ea1