Lines Matching +full:runs +full:- +full:on
20 $this->receivedModeName = $handler->getModeName();
25 $handler->registerModeObject('resolved', $mode);
28 $handler->handleToken('resolved', 'test', DOKU_LEXER_SPECIAL, 0, 'original');
30 $this->assertSame('original', $mode->receivedModeName);
42 $this->receivedModeName = $handler->getModeName();
47 $handler->registerModeObject('mymode', $mode);
50 $handler->handleToken('mymode', 'test', DOKU_LEXER_SPECIAL, 0);
52 $this->assertSame('mymode', $mode->receivedModeName);
71 // This reproduces the conflict the bug depended on.
73 $this->assertNotNull($info, 'info plugin must be available for this test');
74 $handler->registerModeObject('plugin_info', $info);
76 $handler->handleToken('plugin_info', '~~INFO:datetime~~', DOKU_LEXER_SPECIAL, 0);
78 // After the fix, plugin() runs and emits a plugin instruction.
79 // With the bug, modeObjects['plugin_info']->handle() ran and emitted nothing.
80 $this->assertCount(1, $handler->calls, 'plugin mode must emit exactly one instruction');
81 [$name, $args] = $handler->calls[0];
82 $this->assertSame('plugin', $name);
83 $this->assertSame('info', $args[0]);
84 $this->assertSame(['datetime'], $args[1]);
85 $this->assertSame('~~INFO:datetime~~', $args[3]);