Commit Graph
134 Commits
Author SHA1 Message Date
TomasVotruba 154c85b680 remove unused namespaces 2017-11-30 10:27:01 +01:00
TomasVotruba b2e816c8ad fix tests 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
TomasVotruba dad79320b3 fix cs 2017-11-10 23:53:51 +01:00
TomasVotruba 0cb4b04fa6 add test for removeTag() 2017-11-10 23:53:51 +01:00
TomasVotruba 474fd9e29a add test for removeTag() 2017-11-10 23:53:51 +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
Roberto Espinoza a8d791f8c9 Check tag body has a value before trying to access it as an string array 2017-08-08 08:43:50 +02:00
Roberto Espinoza 4aada1f93c Check tag body has a value before trying to access it as an string array 2017-08-08 08:39:58 +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 183824db76 Restores future support for annotations
In #89 the regex to parse tags was to strict. The first character after a tag
had to be a single string. Annotations typically start with a parentheses. Only character not
allowed after a tag is a [.
2017-08-04 22:55:59 +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
Mike van Riel 8331b5efe8 Merge pull request #79 from Ener-Getick/patch-1
Fix an unexpected behaviour with @deprecated tags
2016-09-30 09:12:33 +02:00
Jordi Boggiano 019848728e Add support for rest argument notation 2016-09-28 18:42:19 +02:00
Guilhem N 1be8bc1738 Fix an unexpected behaviour with @deprecated tags 2016-07-18 15:04:51 +02:00
Hidde Boomsma 02fa9f585e Void is a reserved keyword in PHP7.1.
Running the unit tests with php nightly exposed the bug:

Fatal error: Cannot use phpDocumentor\Reflection\Types\Void as Void
because 'Void' is a special class name in
/home/travis/build/hboomsma/ReflectionDocBlock/tests/unit/DocBlock/Tags/MethodTest.php
on line 25
2016-06-10 11:10:02 +02:00
Mike van Riel 45ada3e3fd Merge pull request #73 from hboomsma/feature/typed-array
Allow typed arrays in @method annotation.
2016-06-06 08:44:13 +02:00
Hidde Boomsma 10c99960dc Allow typed arrays in @method annotation.
Since the type resolver has support for typed arrays,
I allowed the syntax for the @method annotation.

In effect you can now annotate magic methods like:
    @method Object[] myMethod($arg1, $arg2)
    @method int[] myOtherMethod()
2016-04-07 15:42:51 +02:00
Fabian Grutschus 678cf682bf Fix method name is empty when parenthesis is missing in @method 2016-02-26 17:10:44 +01:00
Jaapio e516af3a1b Allow only tags in Docblock argument
The array of tags in the docblock constructor should only contain tags.
Some of the factory methods of the tags are returning a null when the tag could not be created.
This causes issues during parsing. By filtering these null values in the factory this use is resolved.
2015-10-26 15:45:03 +01:00
Jaapio ff18c828dc pass context to tag factory for correct type resolving 2015-08-02 14:20:58 +02:00
Jaapio 6a6a4ca739 add missing @uses 2015-07-05 11:37:49 +02:00
Jaapio 8d24ce351f fix type mapping for return tag 2015-07-05 11:30:12 +02:00
Mike van Riel ed4c6b77ab Write example on escaping values in a DocBlock 2015-06-28 19:49:32 +02:00
Mike van Riel 216cf0025f Add example on writing your own Tag and prepare for TagFactory objects 2015-06-28 11:56:16 +02:00
Mike van Riel a6ffa93e28 Add example and functional test for reconstituting a DocBlock 2015-06-27 16:47:47 +02:00