1 | <?php |
||
9 | class OptionsTest extends WP_UnitTestCase |
||
|
|||
10 | { |
||
11 | /** |
||
12 | * @expectedException InvalidArgumentException |
||
13 | */ |
||
14 | public function test_invalid_option_name() |
||
18 | |||
19 | public function test_base_url_when_empty() |
||
26 | |||
27 | public function test_base_url_with_value() |
||
34 | |||
35 | public function test_script_location_when_empty() |
||
40 | |||
41 | public function test_script_location_with_value() |
||
48 | |||
49 | public function test_fallback_activated_when_empty() |
||
54 | |||
55 | public function test_fallback_activated_with_value() |
||
62 | } |
||
63 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.