9
9
10
10
class AbstractRequestTest extends TestCase
11
11
{
12
+ /** @var AbstractRequest */
13
+ protected $ request ;
14
+
12
15
public function setUp ()
13
16
{
14
17
$ this ->request = m::mock ('\Omnipay\Common\Message\AbstractRequest ' )->makePartial ();
@@ -116,7 +119,7 @@ public function testAmountZeroString()
116
119
}
117
120
118
121
/**
119
- * @expectedException Omnipay\Common\Exception\InvalidRequestException
122
+ * @expectedException \ Omnipay\Common\Exception\InvalidRequestException
120
123
* @expectedExceptionMessage A zero amount is not allowed.
121
124
*/
122
125
public function testAmountZeroNotAllowed ()
@@ -159,7 +162,7 @@ public function testAmountPrecisionLargeNumbers()
159
162
}
160
163
161
164
/**
162
- * @expectedException Omnipay\Common\Exception\InvalidRequestException
165
+ * @expectedException \ Omnipay\Common\Exception\InvalidRequestException
163
166
*
164
167
* We still want to catch obvious fractions of the minor units that are
165
168
* not precision errors at a much lower level.
@@ -178,7 +181,7 @@ public function testGetAmountNoDecimals()
178
181
}
179
182
180
183
/**
181
- * @expectedException Omnipay\Common\Exception\InvalidRequestException
184
+ * @expectedException \ Omnipay\Common\Exception\InvalidRequestException
182
185
*/
183
186
public function testGetAmountNoDecimalsRounding ()
184
187
{
@@ -220,7 +223,7 @@ public function testAmountInvalidFormatThrowsException()
220
223
}
221
224
222
225
/**
223
- * @expectedException Omnipay\Common\Exception\InvalidRequestException
226
+ * @expectedException \ Omnipay\Common\Exception\InvalidRequestException
224
227
*/
225
228
public function testAmountNegativeStringThrowsException ()
226
229
{
@@ -229,7 +232,7 @@ public function testAmountNegativeStringThrowsException()
229
232
}
230
233
231
234
/**
232
- * @expectedException Omnipay\Common\Exception\InvalidRequestException
235
+ * @expectedException \ Omnipay\Common\Exception\InvalidRequestException
233
236
*/
234
237
public function testAmountNegativeFloatThrowsException ()
235
238
{
0 commit comments