Commit graph

8 commits

Author SHA1 Message Date
Henrique Moody 658764a47f
Skip MimetypeTest when in HHVM 2017-10-16 10:16:47 +02:00
Henrique Moody 9c49dd3bcf Use short array syntax 2015-10-17 22:56:32 -03:00
Alexandre Gaigalas a0e4cfa1e2 Fixes MimeTypeTest Expected Exception Path
Previously, the MimeTypeTest was matching UNIX-style file slashes
in its PHPUnit Expected Exception. This change fixes it to
ignore the slash and match only the file name and pass on Windows
platforms as well.
2015-10-17 11:17:32 -03:00
Henrique Moody 62d8909928 Some small coding standard fixes 2015-09-11 02:59:11 -03:00
Henrique Moody 748b280c34 Update conversion to strings on exceptions
Many changes were made on `ValidationException::stringify`:
- Add support for instances of `Exception`;
- Add support for instances of `Traversable`;
- Add support for resources;
- Improve `Array` conversion;
- Improve `Object` conversion;
- Improve conversion of all values by using JSON.

Now, all the parameters of the exception classes are just converted to
string when replacing parameters on exceptions, so the exception classes
now keep the original value of all parameters.
2015-09-04 17:11:40 -03:00
Henrique Moody 8faed71a05 The finfo::file() accepts only valid files 2015-08-26 19:46:51 -03:00
Henrique Moody 757c3776af Add @covers and @group rule on rule tests 2015-08-16 15:00:05 -03:00
Henrique Moody 02a1923eb5 Move unit tests to "tests/unit" 2015-08-11 13:36:25 -03:00
Renamed from tests/Rules/MimetypeTest.php (Browse further)