1 | <?php |
||
10 | class Zookal_Mock_Test_Model_Mocks_AbstractTest extends EcomDev_PHPUnit_Test_Case |
||
|
|||
11 | { |
||
12 | protected $_class = 'Zookal_Mock_Model_Mocks_Abstract'; |
||
13 | |||
14 | /** |
||
15 | * @return Zookal_Mock_Model_Mocks_Abstract |
||
16 | */ |
||
17 | public function getInstance() |
||
21 | |||
22 | /** |
||
23 | * @test |
||
24 | */ |
||
25 | public function itShouldExist() |
||
29 | |||
30 | /** |
||
31 | * @test |
||
32 | */ |
||
33 | public function itShouldBeAnInstanceOfMocksAbstract() |
||
37 | |||
38 | /** |
||
39 | * @test |
||
40 | */ |
||
41 | public function itShouldHaveAMethod__Call() |
||
45 | |||
46 | /** |
||
47 | * @test |
||
48 | */ |
||
49 | public function itShouldHaveAMethodGetMessages() |
||
53 | |||
54 | /** |
||
55 | * @test |
||
56 | */ |
||
57 | public function itShouldHaveAMethodGetMockMethodsReturnThis() |
||
61 | |||
62 | /** |
||
63 | * @test |
||
64 | */ |
||
65 | public function itShouldHaveAMethodgetMockMethodsReturnNull() |
||
69 | |||
70 | /** |
||
71 | * @test |
||
72 | */ |
||
73 | public function itShouldHaveAMethodgetMockMethodsReturnFalse() |
||
77 | |||
78 | /** |
||
79 | * @test |
||
80 | */ |
||
81 | public function itShouldReturnAMessageCollectionWhenCallingGetMessagesMethod() |
||
85 | |||
86 | /** |
||
87 | * @test |
||
88 | */ |
||
89 | public function itShouldReturnTheMocksHelper() |
||
93 | |||
94 | /** |
||
95 | * @test |
||
96 | */ |
||
97 | public function itShouldReturnThis() |
||
105 | |||
106 | /** |
||
107 | * @test |
||
108 | */ |
||
109 | public function itShouldReturnThisWhenCallingACollection() |
||
114 | |||
115 | /** |
||
116 | * @test |
||
117 | */ |
||
118 | public function itShouldReturnNull() |
||
126 | |||
127 | /** |
||
128 | * @test |
||
129 | */ |
||
130 | public function itShouldReturnFalse() |
||
138 | |||
139 | /** |
||
140 | * @test |
||
141 | * @expectedException Varien_Exception |
||
142 | */ |
||
143 | public function itShouldThrowAnExceptionWhenCallingUnknownMethod() |
||
147 | } |
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.