Skip to content

Commit 1028379

Browse files
committed
Merge branch 'master' of github.com:swoftcloud/swoft-component
2 parents 87ae7e8 + 1d411c7 commit 1028379

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: php
2+
3+
php:
4+
- 7.1
5+
- 7.2
6+
- 7.3
7+
8+
before_script:
9+
- composer config -g process-timeout 9000 && composer update
10+
- phpenv config-rm xdebug.ini
11+
12+
script:
13+
- composer test

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"php": ">7.1.0",
1414
"psr/http-message": "^1.0",
1515
"psr/http-server-handler": "^1.0",
16-
"psr/http-server-middleware": "^1.0"
16+
"psr/http-server-middleware": "^1.0",
17+
"swoft/stdlib": "dev-master"
1718
},
1819
"autoload": {
1920
"classmap": [
@@ -29,11 +30,11 @@
2930
}
3031
},
3132
"repositories": {
32-
"packagist": {
33-
"type": "composer",
34-
"url": "https://packagist.laravel-china.org"
35-
}
3633
},
3734
"require-dev": {
35+
"phpunit/phpunit": "^7.5"
36+
},
37+
"scripts": {
38+
"test": "./vendor/bin/phpunit -c phpunit.xml"
3839
}
3940
}

phpunit.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
53
bootstrap="test/bootstrap.php"
64
backupGlobals="false"
75
backupStaticAttributes="false"

src/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,14 @@ public function parsedBody(string $key, $default = null)
359359
}
360360

361361
/**
362-
* add parser body
362+
* Add parser body
363363
*
364364
* @param string $name the name of param
365365
* @param mixed $value the value of param
366366
*
367367
* @return static
368368
*/
369-
public function addParserBody(string $name, $value)
369+
public function addParsedBody(string $name, $value)
370370
{
371371
if (!is_array($this->parsedBody)) {
372372
return $this;

0 commit comments

Comments
 (0)