Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
UnexpectedVirtualNamespaceException
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3declare( strict_types=1 );
4
5namespace MediaWiki\Extension\CampaignEvents\MWEntity;
6
7use RuntimeException;
8
9class UnexpectedVirtualNamespaceException extends RuntimeException {
10    /**
11     * @param int $ns
12     */
13    public function __construct( int $ns ) {
14        parent::__construct( "Unexpectedly got a page with virtual namespace `$ns`" );
15    }
16}