File tree 11 files changed +23
-18
lines changed
11 files changed +23
-18
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,11 @@ language: php
3
3
sudo : false
4
4
5
5
php :
6
- - 5.3
7
6
- 5.4
8
7
- 5.5
9
8
- 5.6
10
9
- 7.0
11
- - hhvm
10
+ - 7.1
12
11
13
12
env :
14
13
- DRIVER=mysqli SPHINXSEARCH_BUILD=rel22
18
17
19
18
matrix :
20
19
fast_finish : true
21
- allow_failures :
22
- - env : DRIVER=pdo SPHINXSEARCH_BUILD=rel22
23
- - env : DRIVER=pdo SPHINXSEARCH_BUILD=beta
24
20
25
21
before_install :
26
22
- mkdir $HOME/sphinx
Original file line number Diff line number Diff line change 15
15
"php" : " >=5.3.0"
16
16
},
17
17
"require-dev" : {
18
- "phpunit/phpunit" : " 4.4 .*"
18
+ "phpunit/phpunit" : " 6.3 .*"
19
19
},
20
20
"autoload" : {
21
21
"psr-4" : {
Original file line number Diff line number Diff line change 4
4
use Foolz \SphinxQL \Expression ;
5
5
use Foolz \SphinxQL \Tests \TestUtil ;
6
6
7
- class ConnectionTest extends PHPUnit_Framework_TestCase
7
+ class ConnectionTest extends \ PHPUnit \ Framework \TestCase
8
8
{
9
9
/**
10
10
* @var ConnectionInterface
@@ -98,7 +98,7 @@ public function testConnect()
98
98
}
99
99
100
100
/**
101
- * @expectedException PHPUnit_Framework_Error_Warning
101
+ * @expectedException PHPUnit\Framework\Error\Warning
102
102
*/
103
103
public function testConnectThrowsPHPException ()
104
104
{
@@ -192,7 +192,7 @@ public function testEscape()
192
192
}
193
193
194
194
/**
195
- * @expectedException PHPUnit_Framework_Error_Warning
195
+ * @expectedException PHPUnit\Framework\Error\Warning
196
196
*/
197
197
public function testEscapeThrowsException ()
198
198
{
Original file line number Diff line number Diff line change 2
2
3
3
use Foolz \SphinxQL \Expression as Expression ;
4
4
5
- class ExpressionTest extends PHPUnit_Framework_TestCase
5
+ class ExpressionTest extends \ PHPUnit \ Framework \TestCase
6
6
{
7
7
public function testValue ()
8
8
{
@@ -16,4 +16,4 @@ public function testValue()
16
16
$ this ->assertInstanceOf ('Foolz\Sphinxql\Expression ' , $ result );
17
17
$ this ->assertEquals ('* \\ Ç"" \'' , (string ) $ result );
18
18
}
19
- }
19
+ }
Original file line number Diff line number Diff line change 7
7
* @package Foolz\SphinxQL
8
8
* @author Vicent Valls
9
9
*/
10
- class FacetTest extends PHPUnit_Framework_TestCase
10
+ class FacetTest extends \ PHPUnit \ Framework \TestCase
11
11
{
12
12
public static $ conn = null ;
13
13
Original file line number Diff line number Diff line change 5
5
use Foolz \SphinxQL \Helper ;
6
6
use Foolz \SphinxQL \Tests \TestUtil ;
7
7
8
- class HelperTest extends PHPUnit_Framework_TestCase
8
+ class HelperTest extends \ PHPUnit \ Framework \TestCase
9
9
{
10
10
/**
11
11
* @var ConnectionInterface
12
12
*/
13
13
public $ conn ;
14
14
15
- public function __construct ()
15
+ public function setUp ()
16
16
{
17
17
$ conn = TestUtil::getConnectionDriver ();
18
18
$ conn ->setParam ('port ' , 9307 );
Original file line number Diff line number Diff line change 4
4
use Foolz \SphinxQL \Match ;
5
5
use Foolz \SphinxQL \Tests \TestUtil ;
6
6
7
- class MatchTest extends PHPUnit_Framework_TestCase
7
+ class MatchTest extends \ PHPUnit \ Framework \TestCase
8
8
{
9
9
public static $ sphinxql = null ;
10
10
Original file line number Diff line number Diff line change 4
4
use Foolz \SphinxQL \Tests \TestUtil ;
5
5
use Foolz \SphinxQL \Exception \DatabaseException ;
6
6
7
- class MultiResultSetTest extends PHPUnit_Framework_TestCase
7
+ class MultiResultSetTest extends \ PHPUnit \ Framework \TestCase
8
8
{
9
9
/**
10
10
* @var Connection
Original file line number Diff line number Diff line change 4
4
use Foolz \SphinxQL \Drivers \Mysqli \Connection ;
5
5
use Foolz \SphinxQL \Tests \TestUtil ;
6
6
7
- class ResultSetTest extends PHPUnit_Framework_TestCase
7
+ class ResultSetTest extends \ PHPUnit \ Framework \TestCase
8
8
{
9
9
/**
10
10
* @var Connection
Original file line number Diff line number Diff line change 6
6
use Foolz \SphinxQL \Match ;
7
7
use Foolz \SphinxQL \Tests \TestUtil ;
8
8
9
- class SphinxQLTest extends PHPUnit_Framework_TestCase
9
+ class SphinxQLTest extends \ PHPUnit \ Framework \TestCase
10
10
{
11
11
public static $ conn = null ;
12
12
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ // PHPUnit Backwards Compatability Fix
4
+ if (!class_exists ('\PHPUnit\Framework\TestCase ' )) {
5
+ class_alias ('\PHPUnit_Framework_TestCase ' , '\PHPUnit\Framework\TestCase ' );
6
+ }
7
+
8
+ if (!class_exists ('\PHPUnit\Framework\Error\Warning ' )) {
9
+ class_alias ('\PHPUnit_Framework_Error_Warning ' , '\PHPUnit\Framework\Error\Warning ' );
10
+ }
11
+
3
12
// autoload.php generated by Composer
4
13
5
14
require_once __DIR__ . '/../vendor/autoload.php ' ;
You can’t perform that action at this time.
0 commit comments