Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 33) sorted by relevance

12

/dokuwiki/lib/scripts/
Dlinkwiz.test.js14 { 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/
Duserdata.test.php32 … $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/
Dutf8_strtolower.test.php27 * @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');
Dpageutils_nons.test.php8 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);
Dutf8_stripspecials.test.php30 * @param string $expected
33 function testGivens($string, $replacement, $additional, $expected) argument
35 …$this->assertEquals($expected, \dokuwiki\Utf8\Clean::stripspecials($string, $replacement, $additio…
DIpTest.php90 * @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 …]
Dstyleutils_cssstyleini.test.php8 $expected = array (
34 array_diff_assoc($expected['stylesheets']['screen'], $actual['stylesheets']['screen'])
39 array_diff_assoc($expected['replacements'], $actual['replacements'])
Ddifference_engine.test.php16 $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 @@&#160;<span class="d…
71 $this->assertEquals($expected, $actual);
Dtoolbar.test.php15 $expected = '"\" --- \\\n \/\/[[example@example.org|\/*!]]>*\/<\/script><script>'.
18 $this->assertEquals($expected, toolbar_signature());
Dmedia_searchlist.test.php93 * @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);
Dcommon_clientip.test.php91 * @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…
Dpageutils_clean_id.test.php113 * @param string $expected
119 function testCleanId($input, $expected, $ascii, $sepchar, $deaccent, $useslash) argument
128 $this->assertEquals($expected, $result);
/dokuwiki/lib/plugins/extension/_test/
DInstallerTest.php51 * @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/
DXmlRpcServerTest.php44 $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));
DApiCoreTest.php60 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/
Dcsv_export.test.php27 $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());
Dcsv_import.test.php97 $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/
Drenderer_xhtml.test.php29 $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 …]
Drenderer_metadata.test.php43 $expected = 'abstract: abstract end.';
44 $this->assertEquals($expected, $this->R->meta['description']['abstract']);
/dokuwiki/_test/tests/TreeBuilder/
DPageTreeBuilderTest.php150 …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);
DControlPageBuilderTest.php22 $expected = [
66 'expected' => [
/dokuwiki/_test/tests/
DInfoTest.php53 public function testParseVersionString($version, $expected) argument
55 $this->assertEquals($expected, \dokuwiki\Info::parseVersionString($version));
/dokuwiki/_test/tests/File/
DPageResolverTest.php95 * @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/
DLogger.php25 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/
DTypeTest.php92 public function testSubType($typehint, $expected, $context = '') argument
101 $this->assertEquals($expected, $result);

12