phantomjs: add test

Closes #26801.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>