作者knives ()
看板PHP
标题[请益] 请问php unit 在做测试可以送body出去吗
时间Mon Apr 27 16:52:49 2015
我现在在用php unit 做API 的测试
可是 有一个POST 的方法,query条件是抓 body
而不是抓POST 变数,请问有办法送body出去吗
谢谢回答
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.35.120.239
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/PHP/M.1430124771.A.E05.html
1F:→ poiuy999: $('input').Val($('body').html()) 这样?XD 04/28 21:58
2F:→ MOONRAKER: 可是phpunit测试中不可能执行javascript吧 04/28 22:14
3F:→ MOONRAKER: 阿 可以把整个网页读取再送出去吗 04/28 22:15
4F:→ et282523: 是有人用 phpunit + selenium 来测试 UI 啦,你是指这个 04/30 23:59
5F:→ et282523: 吗? 04/30 23:59
6F:→ et282523: 有看同事分享过,不过我并不是很熟 05/01 00:00