mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 01:57:13 +00:00
Only shim expectException if necessary (#27)
* Only shim expectException if necessary * Added missing entries to gitignore
This commit is contained in:
@@ -197,3 +197,5 @@ Makefile*
|
|||||||
/vendor/
|
/vendor/
|
||||||
.idea/
|
.idea/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
composer.lock
|
||||||
|
PHP-Parser*/
|
||||||
|
|||||||
+5
-2
@@ -22,8 +22,11 @@ abstract class CrtTestCase extends PHPUnit_Framework_TestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Shim missing calls in older versions of PHPUnit
|
||||||
|
public function __call($name, $arguments) {
|
||||||
// shim expectException -> setExpectedException for PHPUnit 4.8.x
|
// shim expectException -> setExpectedException for PHPUnit 4.8.x
|
||||||
public function expectException($exceptionName) {
|
if ($name == 'expectException') {
|
||||||
$this->setExpectedException($exceptionName);
|
$this->setExpectedException($arguments[0]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user