Skip to content

Instantly share code, notes, and snippets.

@kamaulynder
Created May 26, 2014 09:11
Show Gist options
  • Save kamaulynder/6797cedada68e51e1633 to your computer and use it in GitHub Desktop.
Save kamaulynder/6797cedada68e51e1633 to your computer and use it in GitHub Desktop.
Lindas-MacBook-Pro-4:Lamu phpmechanix$ sudo bin/behat --config application/tests/behat.yml application/tests/features/api.media.feature --format progress
Password:
...........................................F---------------------
| api/v2/media
|
| HTTP/1.1 200 OK
| Date: Mon, 26 May 2014 09:06:46 GMT
| Server: Apache/2.2.27 (Unix) DAV/2 PHP/5.5.12 mod_ssl/2.2.27 OpenSSL/0.9.8y
| X-Powered-By: PHP/5.5.12
| Content-Length: 330
| Content-Type: application/json
|
| {
| "id": "2",
| "user_id": null,
| "caption": "at sendai",
| "created": "1381815821",
| "updated": "1381815819",
| "mime": "image/jpeg",
| "filename": null,
| "width": null,
| "height": null,
| "allowed_methods": {
| "get": true,
| "post": true,
| "put": true,
| "delete": true
| }
| }
..... 70
......F-
| api/v2/media
|
| HTTP/1.1 200 OK
| Date: Mon, 26 May 2014 09:06:48 GMT
| Server: Apache/2.2.27 (Unix) DAV/2 PHP/5.5.12 mod_ssl/2.2.27 OpenSSL/0.9.8y
| X-Powered-By: PHP/5.5.12
| Content-Length: 345
| Content-Type: application/json
|
| {
| "count": 0,
| "results": [],
| "limit": 50,
| "offset": 0,
| "order": "DESC",
| "orderby": "id",
| "curr": "http://localhost/Lamu/httpdocs/api/v2/media?limit=50&offset=0",
| "next": "http://localhost/Lamu/httpdocs/api/v2/media?limit=50&offset=50",
| "prev": "http://localhost/Lamu/httpdocs/api/v2/media?limit=50&offset=0"
| }
......F-----
| api/v2/media
|
| HTTP/1.1 200 OK
| Date: Mon, 26 May 2014 09:06:49 GMT
| Server: Apache/2.2.27 (Unix) DAV/2 PHP/5.5.12 mod_ssl/2.2.27 OpenSSL/0.9.8y
| X-Powered-By: PHP/5.5.12
| Content-Length: 340
| Content-Type: application/json
|
| {
| "count": 0,
| "results": [],
| "limit": 1,
| "offset": 1,
| "order": "DESC",
| "orderby": "id",
| "curr": "http://localhost/Lamu/httpdocs/api/v2/media?limit=1&offset=1",
| "next": "http://localhost/Lamu/httpdocs/api/v2/media?limit=1&offset=2",
| "prev": "http://localhost/Lamu/httpdocs/api/v2/media?limit=1&offset=0"
| }
....F-
| api/v2/media
|
| HTTP/1.1 200 OK
| Date: Mon, 26 May 2014 09:06:49 GMT
| Server: Apache/2.2.27 (Unix) DAV/2 PHP/5.5.12 mod_ssl/2.2.27 OpenSSL/0.9.8y
| X-Powered-By: PHP/5.5.12
| Cache-Control: no-cache, no-store, max-age=0, must-revalidate
| Content-Length: 137
| Content-Type: application/json
|
| {
| "count": 1,
| "allowed_methods": {
| "get": true,
| "post": true,
| "put": true,
| "delete": true
| }
| }
......
(::) failed steps (::)
01. Property 'original_file_url' is not set!
In step `And the response has a "original_file_url" property'. # RestContext::theResponseHasAProperty()
From scenario `Finding a Media'. # features/api.media.feature:38
Of feature `Testing the Media API'. # features/api.media.feature
02. Property value mismatch on 'count'! (given: 3, match: 0)
In step `And the "count" property equals "3"'. # RestContext::thePropertyEquals()
From scenario `Listing all Media'. # features/api.media.feature:82
Of feature `Testing the Media API'. # features/api.media.feature
03. Property value mismatch on 'count'! (given: 1, match: 0)
In step `And the "count" property equals "1"'. # RestContext::thePropertyEquals()
From scenario `Listing All Media with limit and offset'. # features/api.media.feature:92
Of feature `Testing the Media API'. # features/api.media.feature
04. Property 'id' is not set!
In step `And the response has a "id" property'. # RestContext::theResponseHasAProperty()
From scenario `Deleting a Media'. # features/api.media.feature:109
Of feature `Testing the Media API'. # features/api.media.feature
7 scenarios (3 passed, 4 failed)
102 steps (70 passed, 28 skipped, 4 failed)
0m7.841s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment