Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
krsriq authored Aug 20, 2022
1 parent c4a71eb commit 5f7206f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ assertThat(['name'=> 'foobar'], hasKeyInArray('name'));

* `hasKey` - alias of hasKeyInArray

* `hasKeyValuePair` - check if arary has given key, value pair
* `hasKeyValuePair` - check if array has given key, value pair
```php
assertThat(['name'=> 'foobar'], hasKeyValuePair('name', 'foobar'));
```
Expand All @@ -143,7 +143,7 @@ assertThat(['name'=> 'foobar'], hasKeyValuePair('name', 'foobar'));
```php
assertthat([2, 4, 6], arrayWithSize(3));
```
* `emptyArray` - check if array is emtpy
* `emptyArray` - check if array is empty
```php
assertThat([], emptyArray());
```
Expand Down Expand Up @@ -222,7 +222,7 @@ assertThat([2, 4, 6], everyItem(notNullValue()));
assertThat([2, 4, 6], hasItem(equalTo(2)));
```

* `hasItems` - check array has givem items, it can take multiple matcher as arguments
* `hasItems` - check array has given items, it can take multiple matcher as arguments
```php
assertThat([1, 3, 5], hasItems(equalTo(1), equalTo(3)));
```
Expand Down Expand Up @@ -456,7 +456,7 @@ $fp = fopen("/tmp/foo", "w+");
assertThat($fp, resourceValue());
```

* `scalarValue` - check for scaler value
* `scalarValue` - check for scalar value
```php
assertThat(1, scalarValue());
```
Expand Down

0 comments on commit 5f7206f

Please sign in to comment.