File tree Expand file tree Collapse file tree 9 files changed +52
-26
lines changed Expand file tree Collapse file tree 9 files changed +52
-26
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
+ }
23
+ } ,
24
+ "autoload-dev" : {
25
+ "psr-0" : {
26
+ "" : " tests/"
27
+ }
18
28
}
19
29
}
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 \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
6
abstract class AbstractSerializerTest extends TestCase
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ class TestCase extends PHPUnit_Framework_TestCase
4
+ {
5
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments