3 require_once(dirname(__FILE__
).'/../../../fixtures/config/config.php');
5 class test_Ak_convert
extends AkUnitTest
7 function test_html_to_text()
10 <h1 id="creating_a_simple_application_using_the_akelos_framework">Creating a simple application using the Akelos Framework</h1>
12 <h2 id="introduction">Introduction</h2>
14 <p>This tutorial teaches you how to create an application using the Akelos Framework. </p>
16 <p>The application will be used for managing books and their authors and will be named <strong>booklink</strong></p>
18 <h2 id="requisites_for_this_tutorial">Requisites for this tutorial</h2>
21 <li>A MySQL or SQLite Database</li>
22 <li>Apache web server</li>
23 <li>Shell access to your server</li>
26 <p>You can checkout a working copy of the Akelos source code with the command:</p>
28 <pre><code>svn co http://akelosframework.googlecode.com/svn/trunk/ akelos
32 Creating a simple application using the Akelos Framework
33 ========================================================
38 This tutorial teaches you how to create an application using the Akelos Framework.
40 The application will be used for managing books and their authors and will be named **booklink**
42 Requisites for this tutorial
43 ----------------------------
45 * A MySQL or SQLite Database
47 * Shell access to your server
49 You can checkout a working copy of the Akelos source code with the command:
51 svn co http://akelosframework.googlecode.com/svn/trunk/ akelos
54 $this->assertEqual(Ak
::convert('html','text',$html), $markdown);
57 function test_html_to_text_with_entities()
60 &<b>Hi there</b>
66 $converted = Ak
::convert('html','text',$html);
67 $this->assertEqual($converted, $markdown);
70 function test_html_to_text_custom_tags()
73 <table><tr><td><rare><b>Hi</b></rare></td></tr>
78 $this->assertEqual(Ak
::convert('html','text',$html), $markdown);
81 function test_html_to_text_removing_js()
84 <script type="text/javascript">something_really_bad()</script><em>Hola</em>
89 $this->assertEqual(Ak
::convert('html','text',$html), $markdown);
92 function test_html_to_with_text_using_quotes()
95 “I’m completelly agree”
98 “I’m completelly agree”
100 $this->assertEqual(Ak
::convert('html','text',$html), $markdown);
103 function test_html_to_text_using_smartipants()
106 "I'm completelly agree"
109 “I’m completelly agree”
111 $this->assertEqual(Ak
::convert('html','text',$html), $markdown);
115 ak_test('test_Ak_convert',true);