Skip to content

Commit 5d52cef

Browse files
author
Openset
committed
Add: tests
1 parent c1fd809 commit 5d52cef

File tree

5 files changed

+41
-5
lines changed

5 files changed

+41
-5
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.yml]
15+
indent_style = space
16+
indent_size = 2

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
/vendor/
1+
.DS_Store
2+
.idea/
3+
vendor/
24
composer.lock

composer.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "openset/http",
33
"description": "Http request for php",
4+
"keywords": [
5+
"openset",
6+
"http"
7+
],
48
"type": "library",
5-
"require": {
6-
"php": ">=5.6",
7-
"guzzlehttp/guzzle": "^6.3"
8-
},
99
"license": "MIT",
1010
"authors": [
1111
{
@@ -14,6 +14,13 @@
1414
}
1515
],
1616
"minimum-stability": "stable",
17+
"require": {
18+
"php": ">=5.6",
19+
"guzzlehttp/guzzle": "^6.3"
20+
},
21+
"require-dev": {
22+
"phpunit/phpunit": "^6.0"
23+
},
1724
"autoload": {
1825
"psr-4": {
1926
"Openset\\": "src/"

tests/HttpClientTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
final class HttpClientTest
4+
{
5+
6+
}

tests/bootstrap.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
define('TEST_ROOT', __DIR__);
4+
5+
require_once dirname(__DIR__) . '/vendor/autoload.php';

0 commit comments

Comments
 (0)