PHP Classes

File: tests/api/Create/ArticleWithBadParamsNamesCept.php

Recommend this page to a friend!
  Classes of Gjero Krsteski  >  PHP Nuclear Reactor  >  tests/api/Create/ArticleWithBadParamsNamesCept.php  >  Download  
File: tests/api/Create/ArticleWithBadParamsNamesCept.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Nuclear Reactor
Asynchronous RESTful API using ReactPHP and PIMF
Author: By
Last change: Update of tests/api/Create/ArticleWithBadParamsNamesCept.php
Date: 2 years ago
Size: 288 bytes
 

Contents

Class file image Download
<?php
$I
= new ApiTester($scenario);
$I->wantTo('create a article via API using no expected parameters');
$I->haveHttpHeader('Content-Type', 'application/x-www-form-urlencoded');
$I->sendPOST('/articles', ['test' => 'test title', 'test2' => 'test content']);
$I->seeResponseCodeIs(400);


For more information send a message to info at phpclasses dot org.