1 | <?php |
||
10 | class Zookal_Mock_Test_Helper_DataTest extends EcomDev_PHPUnit_Test_Case |
||
|
|||
11 | { |
||
12 | protected $_class = 'Zookal_Mock_Helper_Data'; |
||
13 | |||
14 | /** |
||
15 | * @param int $enabled |
||
16 | * |
||
17 | * @return PHPUnit_Framework_MockObject_MockObject|null |
||
18 | */ |
||
19 | public function getStoreMock($enabled = 0) |
||
28 | |||
29 | /** |
||
30 | * @param PHPUnit_Framework_MockObject_MockObject $mockStore |
||
31 | * |
||
32 | * @return Zookal_Mock_Helper_Data |
||
33 | */ |
||
34 | public function getInstance($mockStore = null) |
||
41 | |||
42 | /** |
||
43 | * @test |
||
44 | */ |
||
45 | public function itShouldExist() |
||
49 | |||
50 | /** |
||
51 | * @test |
||
52 | */ |
||
53 | public function itShouldExtendTheHelperAbstract() |
||
57 | |||
58 | /** |
||
59 | * @test |
||
60 | */ |
||
61 | public function itShouldHaveAGetStoreMethod() |
||
65 | |||
66 | /** |
||
67 | * @test |
||
68 | * @depends itShouldHaveAGetStoreMethod |
||
69 | */ |
||
70 | public function itShouldReturnTheInjectedStoreModel() |
||
76 | |||
77 | /** |
||
78 | * @test |
||
79 | */ |
||
80 | public function itShouldHaveAMethodIsLogMethodEnabled() |
||
84 | |||
85 | /** |
||
86 | * @test |
||
87 | * @depends itShouldHaveAMethodIsLogMethodEnabled |
||
88 | */ |
||
89 | public function itShouldReturnEnabledLog() |
||
95 | |||
96 | /** |
||
97 | * @test |
||
98 | * @depends itShouldHaveAMethodIsLogMethodEnabled |
||
99 | */ |
||
100 | public function itShouldReturnDisabledLog() |
||
106 | |||
107 | /** |
||
108 | * @test |
||
109 | */ |
||
110 | public function itShouldHaveAMethodSetMockPhpIncludePath() |
||
114 | |||
115 | /** |
||
116 | * @test |
||
117 | */ |
||
118 | public function itShouldNotSetTheMockPhpIncludePathAgain() |
||
124 | } |
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.