Change-Id: I7f5e8684d556befc0aefa302187c573e7a3cff62
public function setUp() {
parent::setUp();
- if ( !extension_loaded( 'intl' ) ) {
- $this->markTestSkipped( "PHP extension 'intl' is not loaded, skipping." );
- }
+ $this->checkPHPExtension( 'intl' );
}
/**
* @dataProvider provideCurlConstants
*/
public function testCurlConstants( $value ) {
- if ( !extension_loaded( 'curl' ) ) {
- $this->markTestSkipped( "PHP extension 'curl' is not loaded, skipping." );
- }
+ $this->checkPHPExtension( 'curl' );
$this->assertTrue( defined( $value ), $value . ' not defined' );
}