}
public static function provideGeneralEncoding() {
- // @codingStandardsIgnoreStart Generic.Files.LineLength
+ // phpcs:disable Generic.Files.LineLength
return array_merge(
self::addFormatVersion( 1, [
// Basic types
'a:1:{s:3:"foo";s:3:"foo";}' ],
] )
);
- // @codingStandardsIgnoreEnd
+ // phpcs:enable
}
public function testCrossDomainMangling() {
$printer->closePrinter();
ob_end_clean();
$this->fail( 'Expected exception not thrown' );
- } catch ( UsageException $ex ) {
+ } catch ( ApiUsageException $ex ) {
ob_end_clean();
- $this->assertSame(
- 'This response cannot be represented using format=php. ' .
- 'See https://phabricator.wikimedia.org/T68776',
- $ex->getMessage(),
+ $this->assertTrue(
+ $ex->getStatusValue()->hasMessage( 'apierror-formatphp' ),
'Expected exception'
);
}