Skip to content

Commit

Permalink
Added changelog and readme (webmozarts#57)
Browse files Browse the repository at this point in the history
* Added changelog for webmozarts#33

* Added changelog for webmozarts#34

* Added changelog for webmozarts#35

* Added changelog for webmozarts#37

* Adding .gitattributes

Will replace webmozarts#39

* Added changelog for webmozarts#48

* Added changelog for webmozarts#51

* Added readme

* Add changelog for webmozarts#28
  • Loading branch information
Nyholm authored Jan 29, 2018
1 parent 32d1bda commit 5f82ffd
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 31 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/tests export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/appveyor.yml export-ignore
/phpunit.xml.dist export-ignore
34 changes: 23 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
Changelog
=========

* UNRELEASED
## UNRELEASED

* added `Assert::minCount()`
* added `Assert::maxCount()`
* added `Assert::countBetween()`
* added `Assert::isCountable()`
### Added

* 1.2.0 (2016-11-23)
* added `Assert::minCount()`
* added `Assert::maxCount()`
* added `Assert::countBetween()`
* added `Assert::isCountable()`
* added `Assert::notWhitespaceOnly()`
* added `Assert::natural()`
* added `Assert::notContains()`
* added `Assert::isArrayAccessible()`
* added `Assert::isInstanceOfAny()`
* added `Assert::isIterable()`

### Fixed

* `stringNotEmpty` will no longer report "0" is an empty string

## 1.2.0 (2016-11-23)

* added `Assert::throws()`
* added `Assert::count()`
* added extension point `Assert::reportInvalidArgument()` for custom subclasses

* 1.1.0 (2016-08-09)
## 1.1.0 (2016-08-09)

* added `Assert::object()`
* added `Assert::propertyExists()`
Expand All @@ -23,19 +35,19 @@ Changelog
* added `Assert::methodNotExists()`
* added `Assert::uuid()`

* 1.0.2 (2015-08-24)
## 1.0.2 (2015-08-24)

* integrated Style CI
* add tests for minimum package dependencies on Travis CI

* 1.0.1 (2015-05-12)
## 1.0.1 (2015-05-12)

* added support for PHP 5.3.3

* 1.0.0 (2015-05-12)
## 1.0.0 (2015-05-12)

* first stable release

* 1.0.0-beta (2015-03-19)
## 1.0.0-beta (2015-03-19)

* first beta release
43 changes: 23 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,28 @@ The [`Assert`] class provides the following assertions:

### Type Assertions

Method | Description
----------------------------------------------- | --------------------------------------------------
`string($value, $message = '')` | Check that a value is a string
`stringNotEmpty($value, $message = '')` | Check that a value is a non-empty string
`integer($value, $message = '')` | Check that a value is an integer
`integerish($value, $message = '')` | Check that a value casts to an integer
`float($value, $message = '')` | Check that a value is a float
`numeric($value, $message = '')` | Check that a value is numeric
`natural($value, $message= ''')` | Check that a value is a non-negative integer
`boolean($value, $message = '')` | Check that a value is a boolean
`scalar($value, $message = '')` | Check that a value is a scalar
`object($value, $message = '')` | Check that a value is an object
`resource($value, $type = null, $message = '')` | Check that a value is a resource
`isCallable($value, $message = '')` | Check that a value is a callable
`isArray($value, $message = '')` | Check that a value is an array
`isTraversable($value, $message = '')` | Check that a value is an array or a `\Traversable`
`isCountable($value, $message = '')` | Check that a value is an array or a `\Countable`
`isInstanceOf($value, $class, $message = '')` | Check that a value is an `instanceof` a class
`notInstanceOf($value, $class, $message = '')` | Check that a value is not an `instanceof` a class
Method | Description
-------------------------------------------------------- | --------------------------------------------------
`string($value, $message = '')` | Check that a value is a string
`stringNotEmpty($value, $message = '')` | Check that a value is a non-empty string
`integer($value, $message = '')` | Check that a value is an integer
`integerish($value, $message = '')` | Check that a value casts to an integer
`float($value, $message = '')` | Check that a value is a float
`numeric($value, $message = '')` | Check that a value is numeric
`natural($value, $message= ''')` | Check that a value is a non-negative integer
`boolean($value, $message = '')` | Check that a value is a boolean
`scalar($value, $message = '')` | Check that a value is a scalar
`object($value, $message = '')` | Check that a value is an object
`resource($value, $type = null, $message = '')` | Check that a value is a resource
`isCallable($value, $message = '')` | Check that a value is a callable
`isArray($value, $message = '')` | Check that a value is an array
`isTraversable($value, $message = '')` (deprecated) | Check that a value is an array or a `\Traversable`
`isIterable($value, $message = '')` | Check that a value is an array or a `\Traversable`
`isCountable($value, $message = '')` | Check that a value is an array or a `\Countable`
`isInstanceOf($value, $class, $message = '')` | Check that a value is an `instanceof` a class
`isInstanceOfAny($value, array $classes, $message = '')` | Check that a value is an `instanceof` a at least one class on the array of classes
`notInstanceOf($value, $class, $message = '')` | Check that a value is not an `instanceof` a class
`isArrayAccessible($value, $message = '')` | Check that a value can be accessed as an array

### Comparison Assertions

Expand Down Expand Up @@ -153,7 +156,7 @@ Method | Description
`maxLength($value, $max, $message = '')` | Check that a string has at most a certain number of characters
`lengthBetween($value, $min, $max, $message = '')` | Check that a string has a length in the given range
`uuid($value, $message = '')` | Check that a string is a valid UUID
`notWhitespaceOnly($value, $message = '')` | Check that a string contains a least one non-whitespace character
`notWhitespaceOnly($value, $message = '')` | Check that a string contains at least one non-whitespace character

### File Assertions

Expand Down

0 comments on commit 5f82ffd

Please sign in to comment.