Skip to content

Commit 219462c

Browse files
committed
Updated mockery, added phpunit.xml.dist
1 parent 3b77366 commit 219462c

File tree

4 files changed

+36
-4
lines changed

4 files changed

+36
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ util/output
2727

2828
# Sami docs generator
2929
/sami.phar
30+
31+
# PHPUnit
32+
phpunit.xml

composer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"license": "Apache-2.0",
77
"authors": [
88
{
9-
"name": "Zachary Tong"
9+
"name": "Zachary Tong"
10+
},
11+
{
12+
"name": "Enrico Zimuel"
1013
}
1114
],
1215
"require": {
@@ -18,7 +21,7 @@
1821
"require-dev": {
1922
"cpliakas/git-wrapper": "~1.0",
2023
"doctrine/inflector": "^1.1",
21-
"mockery/mockery": "0.9.4",
24+
"mockery/mockery": "^1.2",
2225
"phpstan/phpstan-shim": "0.9.1",
2326
"phpunit/phpunit": "6.3.0",
2427
"squizlabs/php_codesniffer": "3.0.2",
@@ -36,7 +39,8 @@
3639
},
3740
"autoload-dev": {
3841
"psr-4": {
39-
"Elasticsearch\\Tests\\": "tests/Elasticsearch/Tests/"
42+
"Elasticsearch\\Tests\\": "tests/Elasticsearch/Tests/",
43+
"Elasticsearch\\IntegrationTests\\": "tests/Elasticsearch/IntegrationTests/"
4044
}
4145
},
4246
"config": {

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
beStrictAboutOutputDuringTests="true"
1010
>
1111
<php>
12-
<server name="ES_TEST_HOST" value="http://localhost:9200"/>
12+
<server name="ES_TEST_HOST" value="localhost:9200"/>
1313
</php>
1414
<testsuites>
1515
<testsuite name="Tests">

phpunit.xml.dist

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.3/phpunit.xsd"
4+
bootstrap="tests/bootstrap.php"
5+
colors="true"
6+
failOnRisky="true"
7+
verbose="true"
8+
beStrictAboutChangesToGlobalState="true"
9+
beStrictAboutOutputDuringTests="true"
10+
>
11+
<php>
12+
<server name="ES_TEST_HOST" value=""/>
13+
</php>
14+
<testsuites>
15+
<testsuite name="Tests">
16+
<directory>tests</directory>
17+
<exclude>tests/Elasticsearch/Tests/YamlRunnerTest.php</exclude>
18+
</testsuite>
19+
</testsuites>
20+
<filter>
21+
<whitelist>
22+
<directory suffix=".php">src</directory>
23+
</whitelist>
24+
</filter>
25+
</phpunit>

0 commit comments

Comments
 (0)