99
1010class AbstractRequestTest extends TestCase
1111{
12+ /** @var AbstractRequest */
13+ protected $ request ;
14+
1215 public function setUp ()
1316 {
1417 $ this ->request = m::mock ('\Omnipay\Common\Message\AbstractRequest ' )->makePartial ();
@@ -116,7 +119,7 @@ public function testAmountZeroString()
116119 }
117120
118121 /**
119- * @expectedException Omnipay\Common\Exception\InvalidRequestException
122+ * @expectedException \ Omnipay\Common\Exception\InvalidRequestException
120123 * @expectedExceptionMessage A zero amount is not allowed.
121124 */
122125 public function testAmountZeroNotAllowed ()
@@ -159,7 +162,7 @@ public function testAmountPrecisionLargeNumbers()
159162 }
160163
161164 /**
162- * @expectedException Omnipay\Common\Exception\InvalidRequestException
165+ * @expectedException \ Omnipay\Common\Exception\InvalidRequestException
163166 *
164167 * We still want to catch obvious fractions of the minor units that are
165168 * not precision errors at a much lower level.
@@ -178,7 +181,7 @@ public function testGetAmountNoDecimals()
178181 }
179182
180183 /**
181- * @expectedException Omnipay\Common\Exception\InvalidRequestException
184+ * @expectedException \ Omnipay\Common\Exception\InvalidRequestException
182185 */
183186 public function testGetAmountNoDecimalsRounding ()
184187 {
@@ -220,7 +223,7 @@ public function testAmountInvalidFormatThrowsException()
220223 }
221224
222225 /**
223- * @expectedException Omnipay\Common\Exception\InvalidRequestException
226+ * @expectedException \ Omnipay\Common\Exception\InvalidRequestException
224227 */
225228 public function testAmountNegativeStringThrowsException ()
226229 {
@@ -229,7 +232,7 @@ public function testAmountNegativeStringThrowsException()
229232 }
230233
231234 /**
232- * @expectedException Omnipay\Common\Exception\InvalidRequestException
235+ * @expectedException \ Omnipay\Common\Exception\InvalidRequestException
233236 */
234237 public function testAmountNegativeFloatThrowsException ()
235238 {
0 commit comments