<feed xmlns='http://www.w3.org/2005/Atom'>
<title>drakx/docs/interactive/ask_from_treelist, branch 18.10</title>
<subtitle>Mageia Installer and base platform for many utilities</subtitle>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/'/>
<entry>
<title>added some snipet coe for example</title>
<updated>2002-01-29T16:13:04+00:00</updated>
<author>
<name>Yves Duret</name>
<email>yduret@mandriva.com</email>
</author>
<published>2002-01-29T16:13:04+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=68cb104a88ae6fef8298acab166dccd464d170b7'/>
<id>68cb104a88ae6fef8298acab166dccd464d170b7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
org/css/mageia-logo-nav-3.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/'>index</a> : <a title='forums' href='/web/forums/'>forums</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='d1e56868667234b4d8ea61a79463c3e3e47efa80'/><select name='h' onchange='this.form.submit();'>
<option value='master' selected='selected'>master</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>The forums.mageia.org Website</td><td class='sub right'>Maat [maat]</td></tr></table>
<table class='tabs'><tr><td>
<a href='/web/forums/about/'>about</a><a href='/web/forums/'>summary</a><a href='/web/forums/refs/?id=d1e56868667234b4d8ea61a79463c3e3e47efa80'>refs</a><a href='/web/forums/log/tests/cron/task_provider_test.php'>log</a><a class='active' href='/web/forums/tree/tests/cron/task_provider_test.php?id=d1e56868667234b4d8ea61a79463c3e3e47efa80'>tree</a><a href='/web/forums/commit/tests/cron/task_provider_test.php?id=d1e56868667234b4d8ea61a79463c3e3e47efa80'>commit</a><a href='/web/forums/diff/tests/cron/task_provider_test.php?id=d1e56868667234b4d8ea61a79463c3e3e47efa80'>diff</a><a href='/web/forums/stats/tests/cron/task_provider_test.php'>stats</a></td><td class='form'><form class='right' method='get' action='/web/forums/log/tests/cron/task_provider_test.php'>
<input type='hidden' name='id' value='d1e56868667234b4d8ea61a79463c3e3e47efa80'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/web/forums/tree/?id=d1e56868667234b4d8ea61a79463c3e3e47efa80'>root</a>/<a href='/web/forums/tree/tests?id=d1e56868667234b4d8ea61a79463c3e3e47efa80'>tests</a>/<a href='/web/forums/tree/tests/cron?id=d1e56868667234b4d8ea61a79463c3e3e47efa80'>cron</a>/<a href='/web/forums/tree/tests/cron/task_provider_test.php?id=d1e56868667234b4d8ea61a79463c3e3e47efa80'>task_provider_test.php</a></div><div class='content'>blob: b42f40bb4a64d80e770aba092f23ac7232f8449b (<a href='/web/forums/plain/tests/cron/task_provider_test.php?id=d1e56868667234b4d8ea61a79463c3e3e47efa80'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
<a id='n16' href='#n16'>16</a>
<a id='n17' href='#n17'>17</a>
<a id='n18' href='#n18'>18</a>
<a id='n19' href='#n19'>19</a>
<a id='n20' href='#n20'>20</a>
<a id='n21' href='#n21'>21</a>
<a id='n22' href='#n22'>22</a>
<a id='n23' href='#n23'>23</a>
<a id='n24' href='#n24'>24</a>
<a id='n25' href='#n25'>25</a>
<a id='n26' href='#n26'>26</a>
<a id='n27' href='#n27'>27</a>
<a id='n28' href='#n28'>28</a>
<a id='n29' href='#n29'>29</a>
<a id='n30' href='#n30'>30</a>
<a id='n31' href='#n31'>31</a>
<a id='n32' href='#n32'>32</a>
<a id='n33' href='#n33'>33</a>
<a id='n34' href='#n34'>34</a>
<a id='n35' href='#n35'>35</a>
<a id='n36' href='#n36'>36</a>
<a id='n37' href='#n37'>37</a>
<a id='n38' href='#n38'>38</a>
<a id='n39' href='#n39'>39</a>
<a id='n40' href='#n40'>40</a>
<a id='n41' href='#n41'>41</a>
</pre></td>
<td class='lines'><pre><code><span class="hl opt">&lt;</span>?php
<span class="hl com">/**</span>
<span class="hl com">*</span>
<span class="hl com">* &#64;package testing</span>
<span class="hl com">* &#64;copyright (c) 2010 phpBB Group</span>
<span class="hl com">* &#64;license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2</span>
<span class="hl com">*</span>
<span class="hl com">*/</span>

<span class="hl kwa">class</span> phpbb_cron_task_provider_test <span class="hl kwa">extends</span> PHPUnit_Framework_TestCase
<span class="hl opt">{</span>
	<span class="hl kwa">public function</span> <span class="hl kwd">setUp</span><span class="hl opt">()</span>
	<span class="hl opt">{</span>
		<span class="hl kwc">$this-&gt;extension_manager</span> <span class="hl opt">=</span> <span class="hl kwa">new</span> <span class="hl kwd">phpbb_mock_extension_manager</span><span class="hl opt">(</span>
			<span class="hl kwd">dirname</span><span class="hl opt">(</span>__FILE__<span class="hl opt">) .</span> <span class="hl str">&apos;/&apos;</span><span class="hl opt">,</span>
			<span class="hl kwa">array</span><span class="hl opt">(</span>
				<span class="hl str">&apos;testext&apos;</span> <span class="hl opt">=&gt;</span> <span class="hl kwa">array</span><span class="hl opt">(</span>
					<span class="hl str">&apos;ext_name&apos;</span>      <span class="hl opt">=&gt;</span> <span class="hl str">&apos;testext&apos;</span><span class="hl opt">,</span>
					<span class="hl str">&apos;ext_active&apos;</span>    <span class="hl opt">=&gt;</span> <span class="hl kwa">true</span><span class="hl opt">,</span>
					<span class="hl str">&apos;ext_path&apos;</span>      <span class="hl opt">=&gt;</span> <span class="hl str">&apos;ext/testext/&apos;</span>
				<span class="hl opt">),</span>
			<span class="hl opt">));</span>
		<span class="hl kwc">$this-&gt;provider</span> <span class="hl opt">=</span> <span class="hl kwa">new</span> <span class="hl kwd">phpbb_cron_task_provider</span><span class="hl opt">(</span><span class="hl kwc">$this-&gt;extension_manager</span><span class="hl opt">);</span>
	<span class="hl opt">}</span>

	<span class="hl kwa">public function</span> <span class="hl kwd">test_manager_finds_shipped_tasks</span><span class="hl opt">()</span>
	<span class="hl opt">{</span>
		<span class="hl kwc">$tasks</span> <span class="hl opt">=</span> <span class="hl kwa">array</span><span class="hl opt">();</span>
		<span class="hl kwa">foreach</span> <span class="hl opt">(</span><span class="hl kwc">$this-&gt;provider</span> <span class="hl kwa">as</span> <span class="hl kwc">$task</span><span class="hl opt">)</span>
		<span class="hl opt">{</span>
			<span class="hl kwc">$tasks</span><span class="hl opt">[] =</span> <span class="hl kwc">$task</span><span class="hl opt">;</span>
		<span class="hl opt">}</span>
		<span class="hl kwd">sort</span><span class="hl opt">(</span><span class="hl kwc">$tasks</span><span class="hl opt">);</span>

		<span class="hl kwc">$this-&gt;assertEquals</span><span class="hl opt">(</span><span class="hl kwa">array</span><span class="hl opt">(</span>
			<span class="hl str">&apos;phpbb_cron_task_core_dummy_task&apos;</span><span class="hl opt">,</span>
			<span class="hl str">&apos;phpbb_cron_task_core_second_dummy_task&apos;</span><span class="hl opt">,</span>
			<span class="hl str">&apos;phpbb_ext_testext_cron_dummy_task&apos;</span><span class="hl opt">,</span>
		<span class="hl opt">),</span> <span class="hl kwc">$tasks</span><span class="hl opt">);</span>
	<span class="hl opt">}</span>
<span class="hl opt">}</span>
</code></pre></td></tr></table>
</div> <!-- class=content -->
<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit v1.2.1</a> (<a href='https://git-scm.com/'>git 2.21.0</a>) at 2026-05-14 09:44:19 +0000</div>
</div> <!-- id=cgit -->
</body>
</html>
