Commit Graph

5 Commits

Author SHA1 Message Date
madmatt
665490dfde MINOR: Don't include Hamcrest globally so it doesn't conflict with PHPUnit
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()`).
2015-11-27 12:43:33 +13:00
helpfulrobot
314feddd48 Converted to PSR-2 2015-11-21 19:19:20 +13:00
Damian Mooyman
790afb211a BUG Fix test case not elegantly failing on missing phockito 2014-06-18 11:04:18 +12:00
Damian Mooyman
23a1ba6e1a BUG Fix subsite document ID generation 2014-05-22 16:48:37 +12:00
Darren Inwood
a2cfbb531b BUG Fix sold indexing storing against the incorrect class key 2014-05-22 12:18:38 +12:00