File tree Expand file tree Collapse file tree 4 files changed +43
-2
lines changed Expand file tree Collapse file tree 4 files changed +43
-2
lines changed Original file line number Diff line number Diff line change
1
+ vendor
2
+ composer.lock
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Created by PhpStorm.
4
+ * User: miquel
5
+ * Date: 17/03/14
6
+ * Time: 11:38
7
+ */
8
+
9
+ namespace Solilokiam \HttpRedisCache \Test \RedisClient ;
10
+
11
+
12
+ use Solilokiam \HttpRedisCache \RedisClient \Client ;
13
+
14
+ class ClientTest extends \PHPUnit_Framework_TestCase
15
+ {
16
+ protected $ redisMock ;
17
+
18
+ protected function setUp ()
19
+ {
20
+ $ this ->redisMock = $ this ->getMock ('Redis ' );
21
+ }
22
+
23
+ public function testSimpleConnect ()
24
+ {
25
+ $ client = new Client (array ('host ' => 'localhost ' ));
26
+
27
+ $ this ->redisMock ->expects ($ this ->once ())
28
+ ->method ('connect ' )
29
+ ->with ($ this ->equalTo ('localhost ' ), $ this ->equalTo (null ));
30
+ }
31
+ }
Original file line number Diff line number Diff line change 3
3
"description" : " An HttpCache extension with redis for Symfony 2" ,
4
4
"require" : {
5
5
"php" : " >=5.3.3" ,
6
- "symfony/framework-bundle " : " 2.3 .*"
6
+ "predis/predis " : " 0.8 .*"
7
7
},
8
8
"require-dev" : {
9
- "predis/predis " : " 0.8.* "
9
+ "phpunit/phpunit " : " 3.7.14 "
10
10
},
11
11
"license" : " MIT" ,
12
12
"authors" : [
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit colors =" true" bootstrap =" vendor/autoload.php" >
3
+ <testsuites >
4
+ <testsuite name =" Application Test Suite" >
5
+ <directory >./Test/</directory >
6
+ </testsuite >
7
+ </testsuites >
8
+ </phpunit >
You can’t perform that action at this time.
0 commit comments