43 Commits (ff59bbdab0fb5bef212f291bbf9f152c7467fd7d)

Author SHA1 Message Date
Jordi Boggiano 3b9d6769bf Fix class names in comments being parsed in short_open_tags files, fixes #7289 6 years ago
Gabriel Caruso 885da4c8ef Refactoring tests 7 years ago
Rob Bast 4213fbc8c6
does not apply for hhvm 8 years ago
Rob Bast 181b172e77
test cases for #5701 8 years ago
Jordi Boggiano f0f932fca4 Fix classmap test on windows 8 years ago
Vyacheslav Pavlov 108560b9c4 Clean up temp files after a test. 8 years ago
Vyacheslav Pavlov 03995d6caa Added test for 'dump' method of ClassMapGenerator class 8 years ago
Jordi Boggiano f0d67923a5 Fix classmap generator over anonymous classes extending/implementing something, fixes #5239 8 years ago
Niels Keurentjes 0b55a0ca91 Can't use error_clear_last as it was introduced in PHP7. 9 years ago
Rob Bast adf3b956d0 try to use unique test directories
any tests that use the filesystem should have their own unique directory, as we run our test suite in parallel and
cleanup of tests (removing directories) should not interfere with currently running tests
9 years ago
Rob Bast b523fc0b7b ran fixers 9 years ago
Jordi Boggiano b2173d28fc Fix 5.3.3 build 9 years ago
Jordi Boggiano e73448ae1e Add possessive quantifiers to avoid backtracking and fix segfault on large files, fixes #4153 9 years ago
Possum 29ca21f30e PHP version checks tweaking 9 years ago
Fred Emmott 23d5e30fbc Add test for Generics class
Already worked, just adding a test.
9 years ago
Fred Emmott cb1ea889d6 Use HHVM_VERSION instead of HPHP_VERSION 9 years ago
Fred Emmott 33ea86573e Add support for using classmap to autoload Hack enums
fixes composer/composer#3823

Ran tests with both PHP5.5.9-1ubuntu4.5 and HHVM 3.6. Test fails on HHVM only
if I back out the ClassMapGenerator.php change.
9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Denis Sokolov 836534067b Avoid ambiguity warning for example directories as well
In particular, PEAR repositories use a classmap and example directories trigger
multiple false positive warnings.
10 years ago
Denis Sokolov 65b9cca7b5 Fix ClassMapGenerator unambiguousReference test coverage
Without this fix the test only covers having files in "test", the "fixture"
portion it is not covered at all, because all fixtures in phpunit tests
are already in "test" directory
10 years ago
Jordi Boggiano 0902305196 Fix classmap generator warnings and tests 10 years ago
Jordi Boggiano 8974a1ac92 Ignore ambiguous classes in tests/fixtures dirs, fixes #2858 10 years ago
Daniel Karp e3be04c443 Don't show Ambiguous class resolution warning if class when not ambiguous
if a class or interface is defined twice in the same class, this should not produce a warning
10 years ago
Jordi Boggiano 7daf876d70 Fix test because the order of filesystem iteration is non deterministic 10 years ago
Jordi Boggiano 781c97fa9b Refactor to avoid global static state 10 years ago
Jan Brecka b94838169d show warning only instead of throwing exception 10 years ago
Jan Brecka de09c5e371 remove duplicity 10 years ago
Jan Brecka 5763685e69 use statement 10 years ago
Jan Brecka ea7717c8e5 improve exception message 10 years ago
Jan Brecka 13b57112a9 Throw RuntimeException when ambiguous reference was found. 10 years ago
David Simon 2665c60b2f Test for bug parsing multiline strings with 'escaped' newlines 11 years ago
Jordi Boggiano aefe3a0b11 Add support for .inc files in classmap, fixes #1396 12 years ago
Jordi Boggiano de3235a2a4 Add tests to prevent regressions on strings/nowdoc/comment stripping 12 years ago
Jordi Boggiano 5a01ada383 Restrict unicode chars allowed to what php core allows, refs #1361 12 years ago
Jordi Boggiano 2d7c3c9d27 Tweak #1361 to re-enable support for unicode classnames 12 years ago
Igor Wiedler 530991217b Support classmap generation for classes without space after class name
Class names with multi-byte characters are not supported.

Closes #1360.
12 years ago
Jordi Boggiano 75da832cd3 Fix parsing of large files that go over the PCRE limits 12 years ago
Victor Berchet 86bb1be61f [ClassMapGeneratot] Filter out non php code
Otherwise files like https://github.com/propelorm/Propel/blob/master/generator/lib/behavior/i18n/templates/queryUseI18nQuery.php
would fail ("class" keyword would not be filtered out by php_strip_whitespace())
12 years ago
Victor Berchet ab48114531 [ClassMapGenerator] Improve error message when the path does not exist
i.e. the composer.json has a typo
12 years ago
Victor Berchet ff5c428d60 [ClassMapGenerator] Refine the findClasses method
The code could not throw
12 years ago
Jordi Boggiano 5a763cf010 Fix scanning of empty namespace{} blocks 12 years ago
Martin Hasoň 81e8261692 Added tests for traits 12 years ago
Benjamin Eberlei 671cd5ee08 Add tests for ClassMapGenerator 13 years ago