Skip to content

Commit

Permalink
Merge pull request BedrockStreaming#31 from M6Web/feature/static
Browse files Browse the repository at this point in the history
Rollback about $data arrays : they are now static.
  • Loading branch information
mikaelrandy committed Jul 30, 2014
2 parents e93791b + c953f8e commit 7e3907e
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 130 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ $factory = new \M6Web\Component\RedisMock\RedisMockFactory();
$myRedisMock = $factory->getAdapter('My\Redis\Library');
```

**WARNING !** *RedisMock doesn't implement all Redis features and commands. The mock can have undesired behavior if your parent class uses unsupported features.*
**WARNING !**

* *RedisMock doesn't implement all Redis features and commands. The mock can have undesired behavior if your parent class uses unsupported features.*
* *Storage is static and therefore shared by all instances.*

*Note : the factory will throw an exception by default if your parent class implements unsupported commands. If you want even so partially use the mock, you can specify the second parameter when you build it `$factory->getAdapter('My\Redis\Library', true)`. The exception will then thrown only when the command is called.*

Expand Down
Loading

0 comments on commit 7e3907e

Please sign in to comment.