File tree 4 files changed +10
-4
lines changed
4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 184
184
make elastica-image
185
185
make setup
186
186
mkdir -p build
187
- docker-compose run elastica phpunit -c test/ test/lib/Elastica/Test/Transport/
187
+ docker-compose run elastica phpunit -c test/ test/lib/Elastica/Test/ClientTest.php
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ public function getError()
81
81
$ message = '' ;
82
82
$ response = $ this ->getData ();
83
83
84
- if (isset ($ response ['error ' ][ ' type ' ] )) {
85
- $ message = $ response ['error ' ][ ' type ' ] ;
84
+ if (isset ($ response ['error ' ])) {
85
+ $ message = $ response ['error ' ];
86
86
}
87
87
88
88
// Encoding needed as much more information inside now
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ public function testGetError()
39
39
$ this ->assertInstanceOf ('Elastica \\Bulk \\ResponseSet ' , $ responseSet );
40
40
41
41
$ this ->assertTrue ($ responseSet ->hasError ());
42
- $ this ->assertNotEquals ('AnotherExceptionMessage ' , $ responseSet ->getError ());
43
42
$ this ->assertEquals ('SomeExceptionMessage ' , $ responseSet ->getError ());
43
+ $ this ->assertNotEquals ('AnotherExceptionMessage ' , $ responseSet ->getError ());
44
44
45
45
$ actionExceptions = $ e ->getActionExceptions ();
46
46
$ this ->assertEquals (2 , count ($ actionExceptions ));
Original file line number Diff line number Diff line change 8
8
9
9
class TransportBenchmarkTest extends BaseTest
10
10
{
11
+ protected function setUp ()
12
+ {
13
+ parent ::setUp ();
14
+ $ this ->es20 ("Benchmarks currently skipped with es2.0 " );
15
+ }
16
+
11
17
protected $ _max = 1000 ;
12
18
13
19
protected $ _maxData = 20 ;
You can’t perform that action at this time.
0 commit comments