當前位置: 首頁>>代碼示例>>PHP>>正文


PHP WebGuy::sendGET方法代碼示例

本文整理匯總了PHP中WebGuy::sendGET方法的典型用法代碼示例。如果您正苦於以下問題:PHP WebGuy::sendGET方法的具體用法?PHP WebGuy::sendGET怎麽用?PHP WebGuy::sendGET使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在WebGuy的用法示例。


在下文中一共展示了WebGuy::sendGET方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: WebGuy

<?php

/*
 * This file is part of the Webception package.
 *
 * (c) James Healey <jayhealey@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
$I = new WebGuy($scenario);
$I->wantTo('check AJAX call when the Codeception log check fails.');
$I->sendGET('logs?test=log_fail');
$I->seeResponseContainsJson(array('ready' => false, 'error' => "The Codeception Log directory does not exist. Please check the following path exists:"));
開發者ID:24hours,項目名稱:Webception,代碼行數:14,代碼來源:CheckAJAXWhenLogFailsCept.php

示例2: WebGuy

<?php

/*
 * This file is part of the Webception package.
 *
 * (c) James Healey <jayhealey@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
$I = new WebGuy($scenario);
$I->wantTo('run a passing test');
$I->sendGET('run/acceptance/' . md5('acceptance' . 'TheTestThatPasses'));
$I->seeResponseContainsJson(array('message' => NULL, 'run' => true, 'passed' => true, 'state' => 'passed'));
開發者ID:24hours,項目名稱:Webception,代碼行數:14,代碼來源:RunPassingTestCept.php

示例3: WebGuy

<?php

/*
 * This file is part of the Webception package.
 *
 * (c) James Healey <jayhealey@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
$I = new WebGuy($scenario);
$I->wantTo('run test that does not exist to confirm the response');
$I->sendGET('run/lol/fake-test-id');
$I->seeResponseContainsJson(array('message' => 'The test could not be found.', 'run' => false, 'passed' => false, 'state' => 'error', 'log' => NULL));
開發者ID:24hours,項目名稱:Webception,代碼行數:14,代碼來源:RunNonExistentTestCept.php

示例4: WebGuy

<?php

/*
 * This file is part of the Webception package.
 *
 * (c) James Healey <jayhealey@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
$I = new WebGuy($scenario);
$I->wantTo('check AJAX call when executable passes.');
$I->sendGET('executable?test=pass');
$I->seeResponseContainsJson(array('ready' => true));
開發者ID:24hours,項目名稱:Webception,代碼行數:14,代碼來源:CheckAJAXWhenExecutablePassesCept.php


注:本文中的WebGuy::sendGET方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。