mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
665490dfde
PHPUnit now includes matching functions like `any()` and `anything()` outside of a namespace, which conflicts with `Phockito` that does the same thing when calling `Phockito::include_hamcrest(true)`. This test in particular breaks Behat, because the file includes a class (`SolrReindexTest_Item`) that extends `DataObject`, meaning that this file gets included very early in the initialisation process. Instead, we can just set `Phockito::include_hamcrest(false)` and use the full path to the Hamcrest matching functions instead (e.g. `\Hamcrest_Matchers::anything()`). |
||
---|---|---|
.. | ||
BatchedProcessorTest.php | ||
SearchUpdaterTest.php | ||
SearchVariantSiteTreeSubsitesPolyhomeTest.php | ||
SearchVariantVersionedTest.php | ||
Solr4ServiceTest.php | ||
SolrIndexTest.php | ||
SolrIndexVersionedTest.php | ||
SolrReindexQueuedTest.php | ||
SolrReindexTest.php |