Skip to content

Commit b4ed925

Browse files
committed
Merge pull request sebastianbergmann#5 from pscheit/patch-1
add little usage example
2 parents adba315 + 5236c6a commit b4ed925

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ To add this package as a local, per-project dependency to your project, simply a
2222
"sebastian/diff": "1.0.*"
2323
}
2424
}
25+
26+
### Usage
27+
28+
```php
29+
use SebastianBergmann\Diff;
30+
31+
$diff = new Diff("--- expected\n+++ actual\n");
32+
$diff->diff($expected, $actual);
33+
```

0 commit comments

Comments
 (0)