Skip to content

Commit

Permalink
Fix README tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jm42 committed Feb 16, 2019
1 parent cd21704 commit 5437493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ $plan('john@example.org');
try {
$plan('john(@)example.org');
} catch (MultipleInvalid $errors) {
assert('[ Expected email for "john(@)example.org" ]' === $errors->getMessage());
assert('[ Expected email ]' === $errors->getMessage());
}
```

Expand Down Expand Up @@ -453,7 +453,7 @@ $whitespace = true; // the only one not language dependant
$plan = new Schema(f\intl\chars($lower, $upper, $number, $whitespace));
$data = $plan('Hello World ☃!!1');

assert('Hello World !!1' === $data);
assert('Hello World 1' === $data);
```

Aliases are: `alpha`, `alnum`.
Expand Down

0 comments on commit 5437493

Please sign in to comment.