Fix thesaurus regression from f25bdf4171

- Field class is now immutable, mergeWith() returns a new instance
- Thesaurus roots are recursively merged
- In case of field merge, Structure class do not index the previous field
- Added failing test case for previous bugs
- Added merge tests on Field class
- Added tests for all indexed stuff inside Structure class
This commit is contained in:
Mathieu Darse
2015-06-19 21:17:01 +02:00
parent 1dd4bc5c5f
commit a74d0cd7bd
6 changed files with 291 additions and 40 deletions

View File

@@ -83,7 +83,8 @@
"twig/twig": "~1.14, >=1.14.2",
"vierbergenlars/php-semver": "~2.1",
"willdurand/negotiation": "~1.3",
"zend/gdata": "~1.12.1"
"zend/gdata": "~1.12.1",
"beberlei/assert": "2.3"
},
"require-dev": {
"phpunit/phpunit": "~4.5",