���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/tests/phpunit/includes/block/Restriction/NamespaceRestrictionTest.php
���ѧ٧ѧ�
<?php namespace MediaWiki\Tests\Block\Restriction; use MediaWiki\Block\Restriction\NamespaceRestriction; /** * @group Database * @group Blocking * @covers \MediaWiki\Block\Restriction\AbstractRestriction * @covers \MediaWiki\Block\Restriction\NamespaceRestriction */ class NamespaceRestrictionTest extends RestrictionTestCase { public function testMatches() { $class = $this->getClass(); $page = $this->getExistingTestPage( 'Saturn' ); $restriction = new $class( 1, NS_MAIN ); $this->assertTrue( $restriction->matches( $page->getTitle() ) ); $page = $this->getExistingTestPage( 'Talk:Saturn' ); $this->assertFalse( $restriction->matches( $page->getTitle() ) ); } public function testGetType() { $class = $this->getClass(); $restriction = new $class( 1, 2 ); $this->assertEquals( 'ns', $restriction->getType() ); } /** * @inheritDoc */ protected function getClass() { return NamespaceRestriction::class; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.29 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�