예제 #1
0
<?php

/* @var \Codeception\Scenario $scenario */
$I = new TestGuy($scenario);
$I->wantTo('perform some PUT requests');
$I->sendPUT('/put', ['id' => 400]);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(['message' => 'home', 'id' => 400]);
$I->sendPUT('/hello/peter', ['say' => 'nice to meet you!']);
$I->seeResponseIsJson();
$I->seeResponseContainsJson(['message' => 'nice to meet you!']);
예제 #2
0
파일: AnyCept.php 프로젝트: pklink/hahns
<?php

/* @var \Codeception\Scenario $scenario */
$I = new TestGuy($scenario);
$I->wantTo('check events');
$I->sendDELETE('/any');
$I->seeResponseEquals('any');
$I->sendGET('/any');
$I->seeResponseEquals('any');
$I->sendPATCH('/any');
$I->seeResponseEquals('any');
$I->sendPOST('/any');
$I->seeResponseEquals('any');
$I->sendPUT('/any');
$I->seeResponseEquals('any');