Commit Graph
138 Commits
Author SHA1 Message Date
Jaapio cf16f630f2 Fix code style 2020-01-16 09:49:07 +01:00
Jaapio ce65c06bb6 Fix serialization issue of InvalidTag 2020-01-16 09:38:58 +01:00
Jaapio bb629f6469 Improvements to code 2020-01-12 13:19:45 +01:00
Jaapio 1b78639b8b Add testcase for invalid tag creation 2020-01-03 14:06:44 +01:00
Jaapio bdecc2d3bf Fix issue when processing invalid tags
When invalid tags are processed a null was returned causing all kind
of issues in the normal behavior of this libary. As a solution a generic tag
could be created. But that would just drop the error information in.
Therefore a new tag was introduced, `invalidTag` the tag is just like the
generic tag but does contain the error triggered during the creation of the
tag. Which might help applications like phpdocumentor to display validation issues.
2020-01-03 13:33:06 +01:00
Mike van Riel b668892da4 Fix tests and linting errors after merging in release 4.x 2019-12-27 21:38:28 +01:00
Mike van Riel 506fd89d43 Move type extraction to base class and re-use in Throws 2019-12-27 20:59:58 +01:00
Mike van Riel 0a9b8ea383 Add extra tests to check for multibyte behaviour 2019-12-27 20:18:40 +01:00
Mike van Riel 19dd184a2b Support braces in types for @return
In this change, I have introduced a miniature automaton-light to parse
the type from the @return body. This will prevent issues with people
using generics and other unsupported forms of types.

This change does _not_ allow for the use of Generics or similar; the
TypeResolver will still fail to resolve this type. This will remove a
breaking issue in consuming applications where a runtime exception used
to be thrown.

Please note that this change is only for @return; other tags still need
to be done. This will resolve issue #186
2019-12-27 20:18:32 +01:00
Corey Taylor 97b796040a Fixed @method annotations with an empty argument list and description 2019-12-19 08:41:51 -06:00
Jaapio c14c01875a Make static anlisys pass 2019-12-10 23:46:06 +01:00
Jaapio aee984014b Apply new code style 2019-09-20 10:54:12 +02:00
TomasVotruba 1c8f795c0e apply coding standard to code 2018-01-02 13:40:57 +01:00
Gabriel Caruso a1e6160b99 Welcome 2018 🎉 2018-01-02 04:52:36 -02:00
Gabriel Caruso 4ea190884d Use assertCount (#140) 2017-12-07 21:29:55 +01:00
TomasVotruba 7d2174e8f6 use ::class over string 2017-11-30 10:27:01 +01:00
TomasVotruba f8d4fda4f3 fix cs 2017-11-30 10:27:01 +01:00
TomasVotruba e9e35284d9 use PHPUnit 6.0 syntax for tests 2017-11-30 10:27:01 +01:00
TomasVotruba 5282c2e9a8 return test code back 2017-11-30 10:27:01 +01:00
TomasVotruba 4a9675841b add PHP 7.1 typehints 2017-11-30 10:27:01 +01:00
TomasVotruba 0bac84ee68 remove unused docblocks 2017-11-30 10:27:01 +01:00
TomasVotruba 154c85b680 remove unused namespaces 2017-11-30 10:27:01 +01:00
TomasVotruba 193731a153 remove tests and validation that are now covered by typehints 2017-11-30 10:27:01 +01:00
TomasVotruba a1d8751ad6 tests: add strict_types and typehints, remove tests that are now covered by typehints 2017-11-30 10:27:01 +01:00
TomasVotruba 94fd000123 fix cs 2017-11-30 08:14:17 +01:00
TomasVotruba bdcc0cff11 Serializer - add test for tag removal extra spaces 2017-11-30 08:14:17 +01:00
Gabriel Caruso 7524aba21f Fix tests 2017-11-15 08:29:42 +01:00
Gabriel Caruso c006d4a2d5 Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase 2017-11-15 08:29:42 +01:00
TomasVotruba 5ff9ca38c5 [cs] finalize, spaces, concat and strict comparison 2017-11-12 21:23:54 +01:00
TomasVotruba a872e515bb [cs] add and apply psr2 2017-11-12 21:23:54 +01:00
TomasVotruba 44c0ac7d5f [cs] remove unused imports, short array and order imports on tests 2017-11-12 21:23:54 +01:00
Bozhidar Hristov 899b409199 Add tests for phpDocumentor\Reflection\DocBlock::getTags 2017-09-11 19:53:47 +02:00
Jaapio 2d3d238c43 Adds name to example tag 2017-08-30 20:51:59 +02:00
Jaapio 1d3a5e8585 Fixes namespace error in ExampleFinder 2017-08-30 20:51:28 +02:00
Jaapio 86e24012a3 Merge remote-tracking branch 'warxcell/empty_var_name' 2017-08-29 21:37:41 +02:00
Bozhidar Hristov b11ada456f Fixes https://github.com/phpDocumentor/ReflectionDocBlock/issues/117 2017-08-28 09:51:41 +03:00
Jaapio 125c8b15c8 Fixes risky tests 2017-08-18 23:01:43 +02:00
Jaapio c054cfdfe1 Fixes implementation of Example tag 2017-08-18 23:00:12 +02:00
Jaapio 2b49b7962a Allow see tag to url
The see tag allows Fqsen and uri's. But in the current implementation
only Fqsen where allowed. This wrapps the uri and Fqsen in an uniform class
to be able address them in the same way.

Fixes #78
2017-08-04 23:11:57 +02:00
Jaapio 46f7e8bb07 Allows usage of compound array types
fixes #50
2017-07-15 13:38:20 +02:00
Jaapio b453d2c304 Allow omitting method return type
Support for `@method myMethod()` was missing but according to the
docs of phpdocumentor this is possible.
2017-07-15 13:38:20 +02:00
Jaapio 382d7cd6f3 Removes space after tag without description
fixes #86
2017-07-14 18:33:36 +02:00
Aleksei Akireikin 3048f961a3 Unit tests fixed 2017-07-14 16:20:14 +02:00
Jan Schneider 2318e5eb97 Add unit test. 2017-06-04 21:54:23 +02:00
Christoph Harms-Ensink a41a31f8c8 UPDATE Method.php, MethodTest.php
- try to make the if-condition php 7.2.0-compatible
- correct docBlock for the test method
2017-05-29 14:21:25 +02:00
Christoph Harms-Ensink e9454d844d UPDATE Method.php, MethodTest.php
- Modify the RegEx, so that an annotation like `@method static $this myMethod()` is parsed correctly
- Write a Unittest for that usecase
2017-05-29 14:21:25 +02:00
Jan Schneider c14a4abfd7 Add test for empty email address. 2017-05-29 14:16:37 +02:00
Jan Schneider f0821ad88f Missed this test. 2017-05-29 14:16:37 +02:00
Jan Schneider a5fb25393a Update tests. 2017-05-29 14:16:37 +02:00
Jordi Boggiano 248e5f69dc Fix regex for tag name extraction and restore disabled test 2016-11-14 19:33:41 +01:00