Lines Matching refs:result
51 $result = $plugin->handle($this->exampleEntry, 0, 10, $handler);
53 $this->assertEquals(10, $result['pos'], 'Position has changed');
54 $this->assertEquals('projects', $result['classes'], 'wrong class name detected');
68 $this->assertEquals($dataau, $result['dataau'], 'Data array corrupted');
83 $this->assertEquals($cols, $result['cols'], 'Cols array corrupted');
98 $result = $renderer->doc;
99 $result = substr($result,0,strpos($result,'</internallink>'));
100 $result = substr($result,strpos($result,'<internallink>')+14);
101 $result = unserialize($result);
103 $this->assertSame(':foo',$result['id']);
104 $this->assertSame(null,$result['name'], 'page does not accept a title. useheading decides');
119 $result = $renderer->doc;
120 $result = substr($result,0,strpos($result,'</internallink>'));
121 $result = substr($result,strpos($result,'<internallink>')+14);
122 $result = unserialize($result);
124 $this->assertSame(':foo_bar',$result['id'], 'for type page a title becomes part of the id');
125 $this->assertSame(null,$result['name'], 'page never accepts a title. useheading decides');
140 $result = $renderer->doc;
141 $result = substr($result,0,strpos($result,'</internallink>'));
142 $result = substr($result,strpos($result,'<internallink>')+14);
143 $result = unserialize($result);
145 $this->assertSame('foo',$result['id']);
146 …$this->assertSame('foo',$result['name'], 'pageid: use the pageid as title if no title is provided.…
161 $result = $renderer->doc;
162 $result = substr($result,0,strpos($result,'</internallink>'));
163 $result = substr($result,strpos($result,'<internallink>')+14);
164 $result = unserialize($result);
166 $this->assertSame('foo',$result['id'], "wrong id handed to internal link");
167 $this->assertSame('bar',$result['name'], 'pageid: use the provided title');
182 $result = $renderer->doc;
183 $result = substr($result,0,strpos($result,'</internallink>'));
184 $result = substr($result,strpos($result,'<internallink>')+14);
185 $result = unserialize($result);
187 $this->assertSame(':foo',$result['id']);
188 …$this->assertSame(null,$result['name'], 'no title should be given to internal link. Let useheading…
204 $result = $renderer->doc;
205 $result = substr($result,0,strpos($result,'</internallink>'));
206 $result = substr($result,strpos($result,'<internallink>')+14);
207 $result = unserialize($result);
209 $this->assertSame(':link:to:page',$result['id']);
210 … $this->assertSame('TitleOfPage',$result['name'], 'The Title provided should be the title shown.');
304 $result = $plugin->handle($entry, 0, 10, $handler);
306 $this->assertEquals(10, $result['pos'], 'Position has changed');
307 $this->assertEquals(35, $result['len'], 'wrong entry length');
308 $this->assertEquals('projects', $result['classes'], 'wrong class name detected');
313 $this->assertEquals($dataau, $result['dataau'], 'Data array corrupted');
318 $this->assertEquals($cols, $result['cols'], 'Cols array corrupted');
337 $result = $plugin->handle($this->exampleEntry, 0, 10, $handler);
339 $plugin->_showData($result, $xhtml);
375 $result = $plugin->handle($entry, 0, 10, $handler);
377 $this->assertEquals(10, $result['pos'], 'Position has changed');
378 $this->assertEquals('projects', $result['classes'], 'wrong class name detected');
388 $this->assertEquals($dataau, $result['dataau'], 'Data array corrupted');