File tree Expand file tree Collapse file tree 10 files changed +47
-24
lines changed Expand file tree Collapse file tree 10 files changed +47
-24
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ jobs :
8
+ PHPUnit :
9
+ name : PHPUnit (PHP ${{ matrix.php }})
10
+ runs-on : ubuntu-22.04
11
+ strategy :
12
+ matrix :
13
+ php :
14
+ - 5.4
15
+ - 5.3
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - uses : shivammathur/setup-php@v2
19
+ with :
20
+ php-version : ${{ matrix.php }}
21
+ coverage : xdebug
22
+ - run : composer install
23
+ - run : vendor/bin/phpunit --coverage-text
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# clue/redis-protocol [ ![ Build Status] ( https://travis-ci.org/clue/php-redis-protocol.png?branch=master )] ( https://travis-ci.org/clue/php-redis-protocol )
2
2
3
+ [ ![ CI status] ( https://github.com/clue/php-redis-protocol/actions/workflows/ci.yml/badge.svg )] ( https://github.com/clue/php-redis-protocol/actions )
4
+ [ ![ installs on Packagist] ( https://img.shields.io/packagist/dt/clue/redis-protocol?color=blue&label=installs%20on%20Packagist )] ( https://packagist.org/packages/clue/redis-protocol )
5
+
3
6
A streaming redis protocol parser and serializer written in PHP
4
7
5
8
This parser and serializer implementation allows you to parse redis protocol
Original file line number Diff line number Diff line change 13
13
"require" : {
14
14
"php" : " >=5.3"
15
15
},
16
+ "require-dev" : {
17
+ "phpunit/phpunit" : " ^4.8.36"
18
+ },
16
19
"autoload" : {
17
- "psr-0" : { "Clue\\ Redis\\ Protocol" : " src" }
20
+ "psr-0" : {
21
+ "Clue\\ Redis\\ Protocol" : " src/"
22
+ }
18
23
}
19
24
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
- <phpunit bootstrap =" tests/bootstrap.php"
4
- colors =" true"
5
- convertErrorsToExceptions =" true"
6
- convertNoticesToExceptions =" true"
7
- convertWarningsToExceptions =" true"
8
- >
3
+ <!-- PHPUnit configuration file with old format for legacy PHPUnit -->
4
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/4.8/phpunit.xsd"
6
+ bootstrap =" vendor/autoload.php"
7
+ colors =" true" >
9
8
<testsuites >
10
9
<testsuite name =" Redis Protocol Test Suite" >
11
10
<directory >./tests/</directory >
16
15
<directory >./src/</directory >
17
16
</whitelist >
18
17
</filter >
19
- </phpunit >
18
+ <php >
19
+ <ini name =" error_reporting" value =" -1" />
20
+ </php >
21
+ </phpunit >
Original file line number Diff line number Diff line change 2
2
3
3
use Clue \Redis \Protocol \Serializer \RecursiveSerializer ;
4
4
5
- abstract class AbstractModelTest extends TestCase
5
+ abstract class AbstractModelTest extends \ TestCase
6
6
{
7
7
protected $ serializer ;
8
8
Original file line number Diff line number Diff line change 3
3
use Clue \Redis \Protocol \Parser \ParserInterface ;
4
4
use Clue \Redis \Protocol \Parser \MessageBuffer ;
5
5
6
- abstract class AbstractParserTest extends TestCase
6
+ abstract class AbstractParserTest extends \ TestCase
7
7
{
8
8
/**
9
9
*
Original file line number Diff line number Diff line change 2
2
3
3
use Clue \Redis \Protocol \Parser \ResponseParser ;
4
4
5
- class RecursiveParserTest extends AbstractParserTest
5
+ class ResponseParserTest extends AbstractParserTest
6
6
{
7
7
protected function createParser ()
8
8
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Clue \Redis \Protocol \Serializer \SerializerInterface ;
4
- use Clue \Redis \Protocol \Model \Status ;
5
- use Clue \Redis \Protocol \Model \ErrorReplyException ;
6
4
//use Exception;
7
5
8
- abstract class AbstractSerializerTest extends TestCase
6
+ abstract class AbstractSerializerTest extends \ TestCase
9
7
{
10
8
/**
11
9
* @return SerializerInterface
@@ -85,10 +83,10 @@ public function testArrayMultiBulkReply()
85
83
86
84
public function testErrorReply ()
87
85
{
88
- $ model = $ this ->serializer ->createReplyModel (new Exception ('ERR failure ' ));
86
+ $ model = $ this ->serializer ->createReplyModel (new \ Exception ('ERR failure ' ));
89
87
$ this ->assertInstanceOf ('Clue\Redis\Protocol\Model\ErrorReply ' , $ model );
90
88
$ this ->assertEquals ('ERR failure ' , $ model ->getValueNative ());
91
- $ this ->assertEquals ($ model ->getMessageSerialized ($ this ->serializer ), $ this ->serializer ->getReplyMessage (new Exception ('ERR failure ' )));
89
+ $ this ->assertEquals ($ model ->getMessageSerialized ($ this ->serializer ), $ this ->serializer ->getReplyMessage (new \ Exception ('ERR failure ' )));
92
90
}
93
91
94
92
/**
File renamed without changes.
You can’t perform that action at this time.
0 commit comments