/dokuwiki/lib/scripts/ |
D | linkwiz.test.js | 14 { ref: 'a:b:c', id: 'a:b:d', expected: 'd' }, property 15 { ref: 'a:b:c', id: 'a:b:c:d:e', expected: '.:c:d:e' }, property 16 { ref: 'a:b:c', id: 'a:b:c:d:e', expected: '.:c:d:e' }, property 17 { ref: 'a', id: 'a:b:c', expected: 'a:b:c' }, property 18 { ref: 'a:b', id: 'c:d', expected: 'c:d' }, property 19 { ref: 'a:b:c', id: 'a:d:e', expected: '..:d:e' }, property 20 { ref: 'a:b:c:d', id: 'a:d:e', expected: '..:..:d:e' }, property 21 { ref: 'a:b', id: 'c', expected: ':c' }, property 24 testCases.forEach(({ ref, id, expected }, index) => { property 26 if (result === expected) { [all …]
|
/dokuwiki/lib/plugins/authplain/_test/ |
D | userdata.test.php | 32 … $expected = ['user', 'first_group', 'second_group', 'third_group', 'fourth_group', 'fifth_group']; 34 $this->assertEquals($expected, $actual); 42 $expected = ['user', 'first_group']; 44 $this->assertEquals($expected, $actual); 46 … $expected = ['user', 'first_group', 'second_group', 'third_group', 'fourth_group', 'fifth_group']; 48 $this->assertEquals($expected, $actual); 56 $expected = ['third_group', 'fourth_group', 'fifth_group']; 58 $this->assertEquals($expected, $actual); 60 $expected = []; 62 $this->assertEquals($expected, $actual);
|
/dokuwiki/_test/tests/inc/ |
D | utf8_strtolower.test.php | 27 * @param string $expected 29 public function testGivens($input, $expected) argument 31 $this->assertEquals($expected, \dokuwiki\Utf8\PhpString::strtolower($input)); 33 $this->assertEquals($expected, mb_strtolower($input, 'utf-8'), 'mbstring check');
|
D | pageutils_nons.test.php | 8 public function test_noNS($input, $expected) argument 13 $this->assertSame($expected, noNS($input), $input); 29 public function test_noNSorNS($input, $expected) argument 34 $this->assertSame($expected, noNSorNS($input), $input);
|
D | utf8_stripspecials.test.php | 30 * @param string $expected 33 function testGivens($string, $replacement, $additional, $expected) argument 35 …$this->assertEquals($expected, \dokuwiki\Utf8\Clean::stripspecials($string, $replacement, $additio…
|
D | IpTest.php | 90 * @param bool $expected The expected result from ipInRange(). 94 public function test_ip_in_range(string $ip, string $range, bool $expected): void argument 98 $this->assertSame($expected, $result); 135 * @param bool $expected The expeced result from ipMatches(). 139 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void argument 143 $this->assertSame($expected, $result); 200 * @param bool $expected The expected result from proxyIsTrusted(). 202 public function test_proxy_is_trusted($config, string $ip, bool $expected): void argument 209 $this->assertSame($expected, $result); 283 * @param array $expected The expected result from forwardedFor(). [all …]
|
D | styleutils_cssstyleini.test.php | 8 $expected = array ( 34 array_diff_assoc($expected['stylesheets']['screen'], $actual['stylesheets']['screen']) 39 array_diff_assoc($expected['replacements'], $actual['replacements'])
|
D | difference_engine.test.php | 16 $expected = '<tr><td class="diff-blockheader" colspan="2">Line 1:</td> 41 $this->assertEquals($expected, $actual); 48 …$expected = '<tr><td colspan="2" class="diff-blockheader">@@ Line -1,5 +1,7 @@ <span class="d… 71 $this->assertEquals($expected, $actual);
|
D | toolbar.test.php | 15 $expected = '"\" --- \\\n \/\/[[example@example.org|\/*!]]>*\/<\/script><script>'. 18 $this->assertEquals($expected, toolbar_signature());
|
D | media_searchlist.test.php | 93 * @param string[] $expected The expected media IDs in the result HTML 96 public function testSearch($query, $expected) argument 107 $this->assertEquals(count($expected), count($elements)); 108 $this->assertEquals($expected, $actual);
|
D | common_clientip.test.php | 91 * @param string $expected The expected function result. 95 …dr, bool $useRealIp, string $realIp, string $forwardedFor, bool $single, string $expected) : void { argument 113 …rtEquals(str_replace(array_keys($addresses), array_values($addresses), $expected), clientIP($singl… 127 * @param string $expected The expected function result. 131 …dr, bool $useRealIp, string $realIp, string $forwardedFor, bool $single, string $expected) : void { argument 149 …rtEquals(str_replace(array_keys($addresses), array_values($addresses), $expected), clientIP($singl…
|
D | pageutils_clean_id.test.php | 113 * @param string $expected 119 function testCleanId($input, $expected, $ascii, $sepchar, $deaccent, $useslash) argument 128 $this->assertEquals($expected, $result);
|
/dokuwiki/lib/plugins/extension/_test/ |
D | InstallerTest.php | 51 * @param array $expected 53 public function testFindExtensions($dir, $expected) argument 57 $this->assertEquals(count($expected), count($list), 'number of extensions found'); 61 $this->assertArrayHasKey($base, $expected, 'extension found'); 62 $this->assertEquals($expected[$base], $ext->getType(), 'extension type');
|
/dokuwiki/_test/tests/Remote/ |
D | XmlRpcServerTest.php | 44 $expected = <<<EOD 67 $this->assertXmlStringEqualsXmlString(trim($expected), trim($this->server->output)); 84 $expected = <<<EOD 107 $this->assertXmlStringEqualsXmlString(trim($expected), trim($this->server->output)); 118 $expected = <<<EOD 145 $this->assertXmlStringEqualsXmlString(trim($expected), trim($this->server->output));
|
D | ApiCoreTest.php | 60 protected function assertEqualResult($expected, $actual, $msg = '') argument 65 sort($expected); 68 $expected = json_decode(json_encode($expected), true); 70 $this->assertEquals($expected, $actual, $msg); 171 $expected = [ 192 $expected, 214 $expected = [ 236 $expected, 254 $expected = [ 273 $expected, [all …]
|
/dokuwiki/lib/plugins/usermanager/_test/ |
D | csv_export.test.php | 27 $expected = 'User,"Real Name",Email,Groups 30 $this->assertEquals($expected, $this->usermanager->tryExport()); 47 $expected = 'Benutzername,"Voller Name",E-Mail,Gruppen 50 $this->assertEquals($expected, $this->usermanager->tryExport());
|
D | csv_import.test.php | 97 $expected = array( 105 $this->doImportTest($csv, true, $expected, array()); 134 $expected = array( 142 $this->doImportTest($csv, true, $expected, array()); 153 $expected = array( 161 $this->doImportTest($csv, true, $expected, array());
|
/dokuwiki/_test/tests/inc/parser/ |
D | renderer_xhtml.test.php | 29 $expected = '<div class="table"><table class="inline">'."\n"; 30 $this->assertEquals($expected, $this->R->doc); 36 $expected = '<div class="table"><table class="inline">'."\n"; 37 $this->assertEquals($expected, $this->R->doc); 43 $expected = '<div class="table"><table class="inline">'."\n"; 44 $this->assertEquals($expected, $this->R->doc); 50 $expected = '<div class="table sectionedit1"><table class="inline">'."\n"; 51 $this->assertEquals($expected, $this->R->doc); 57 $expected = '<div class="table feature sectionedit1"><table class="inline">'."\n"; 58 $this->assertEquals($expected, $this->R->doc); [all …]
|
D | renderer_metadata.test.php | 43 $expected = 'abstract: abstract end.'; 44 $this->assertEquals($expected, $this->R->meta['description']['abstract']);
|
/dokuwiki/_test/tests/TreeBuilder/ |
D | PageTreeBuilderTest.php | 150 …lic function testPageTreeConfigurations(string $namespace, int $depth, int $flags, array $expected) argument 159 sort($expected); 162 $this->assertEquals($expected, $result); 170 public function testTopLevelTree(string $namespace, int $depth, int $flags, array $expected) argument 175 $expected = array_map(function ($item) use ($namespace) { 177 }, $expected); 180 $this->testPageTreeConfigurations($namespace, $depth, $flags, $expected);
|
D | ControlPageBuilderTest.php | 22 $expected = [ 66 'expected' => [
|
/dokuwiki/_test/tests/ |
D | InfoTest.php | 53 public function testParseVersionString($version, $expected) argument 55 $this->assertEquals($expected, \dokuwiki\Info::parseVersionString($version));
|
/dokuwiki/_test/tests/File/ |
D | PageResolverTest.php | 95 * @param string $expected 97 public function testResolveID($context, $id, $expected) argument 100 $this->assertEquals($expected, $resolver->resolveId($id)); 182 * @param string $expected 184 public function testResolveRelatives($input, $expected) argument 189 $this->assertEquals($expected, $actual);
|
/dokuwiki/inc/ |
D | Logger.php | 25 protected $expected = []; variable in dokuwiki\\Logger 179 $this->expected[] = $log; 246 if ($this->expected) { 247 $expected = array_shift($this->expected); 248 if (!str_contains($lines[0], $expected)) { 251 "Expected: $expected\n" .
|
/dokuwiki/_test/tests/Remote/OpenApiDoc/ |
D | TypeTest.php | 92 public function testSubType($typehint, $expected, $context = '') argument 101 $this->assertEquals($expected, $result);
|