Skip to content

Commit

Permalink
Updating documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eduluz1976 committed Nov 16, 2018
1 parent 6098271 commit 0ce117a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
36 changes: 35 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,38 @@ Array
[field_name] => name
)
```
```



### URL call

The class ``ActionURLCallTest`` perform remote URL calls, and return the contents parsed.


#### Example


Let's suppose you want to make a call to an endpoint:
```php

$url = 'post;https://username:password@my.hostname:9090/path?arg=value#anchor';

$action = Action::factory($url);

$response = $action->exec();

```


## Testing

To perform tests, just run ``vendor/bin/phpunit`` from root project folder.

But to run the **integration tests**, is necessary start the local server to do it. On this case, just execute the script
on ~/bin/run_integration_tests.sh , and in other terminal window, run ``phpunit``.





1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello

0 comments on commit 0ce117a

Please sign in to comment.