Variables are not being escaped for with()

```php
$this->mock('MyClass')
     ->expect('myMethod')->with('a$b')
     ->done();
```

`$b` is not escaped so evaluating it will cause an error - fix:

```php
$args = str_replace('$', '\\$', addslashes(json_encode($rule['with'])));
```