Skip to content

Commit

Permalink
Stable release
Browse files Browse the repository at this point in the history
Added testing structure and documentation
  • Loading branch information
andrevanzuydam committed Aug 19, 2019
1 parent a8563ce commit 18fc405
Show file tree
Hide file tree
Showing 51 changed files with 460 additions and 423 deletions.
4 changes: 4 additions & 0 deletions Tina4/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
*/
namespace Tina4;

/**
* Class Auth for creating and validating secure tokens for use with the API layers
* @package Tina4
*/
class Auth
{
/**
Expand Down
33 changes: 19 additions & 14 deletions documentation/classes/Tina4.Any.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<ul class="dropdown-menu">
<li>
<a href="../reports/errors.html">
<i class="icon-list-alt"></i>&#160;Errors <span class="label label-info pull-right">191</span>
<i class="icon-list-alt"></i>&#160;Errors <span class="label label-info pull-right">190</span>
</a>
</li>
<li>
Expand Down Expand Up @@ -144,19 +144,19 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-1230648530"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-479563965"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-1230648530" class="accordion-body collapse in">
<div id="namespace-479563965" class="accordion-body collapse in">
<div class="accordion-inner">

<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle collapsed" data-toggle="collapse" data-target="#namespace-1644917182"></a>
<a class="accordion-toggle collapsed" data-toggle="collapse" data-target="#namespace-1439320996"></a>
<a href="../namespaces/Tina4.html" style="margin-left: 30px; padding-left: 0">Tina4</a>
</div>
<div id="namespace-1644917182" class="accordion-body collapse ">
<div id="namespace-1439320996" class="accordion-body collapse ">
<div class="accordion-inner">


Expand All @@ -174,13 +174,13 @@
<li class="class"><a href="../classes/Tina4.Delete.html">Delete</a></li>
<li class="class"><a href="../classes/Tina4.Emailer.html">Emailer</a></li>
<li class="class"><a href="../classes/Tina4.Get.html">Get</a></li>
<li class="class"><a href="../classes/Tina4.ORM.html">ORM</a></li>
<li class="class"><a href="../classes/Tina4.ParseTemplate.html">ParseTemplate</a></li>
<li class="class"><a href="../classes/Tina4.Patch.html">Patch</a></li>
<li class="class"><a href="../classes/Tina4.Post.html">Post</a></li>
<li class="class"><a href="../classes/Tina4.Put.html">Put</a></li>
<li class="class"><a href="../classes/Tina4.Route.html">Route</a></li>
<li class="class"><a href="../classes/Tina4.Routing.html">Routing</a></li>
<li class="class"><a href="../classes/Tina4.Tina4Object.html">Tina4Object</a></li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -361,31 +361,36 @@ <h5></h5>
* Date: 2019-08-18
* Time: 10:55
*/
use Tina4\Any;
use Tina4\Get;
use Tina4\Routing;
//A swagger endpoint for annotating your API end points
Get::add(&#039;/swagger/json.json&#039;, function($response) {
return $response ( (new Routing())-&gt;getSwagger(&quot;Tina4&quot;,&quot;Use the entries below to test the frame work&quot;,&quot;1.0.0&quot;));
});
use Tina4\Post;
use Tina4\Patch;

use Tina4\Routing;

/**
* Hello world get end point
* Get a result of the tests
* @description Runs a Hello world test
* @tags Hello World
* @summary Get a hello world test
*/
Get::add(&quot;/tests/routing&quot;, function($response){

ob_start();
passthru(&quot;./codecept run unit&quot;);
passthru(&quot;./codecept run&quot;);
$variable = ob_get_contents();
ob_get_clean();


return $response ($variable, 200, &quot;text/html&quot;);

});

Any::add(&quot;/tests/routing/any&quot;, function ($response){

return $response (&quot;OK&quot;, 200);
});

</pre>
</article>
</div>
Expand Down Expand Up @@ -453,7 +458,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 18th, 2019 at 10:30.
on August 19th, 2019 at 13:42.
</section>
</section>
</section>
Expand Down
18 changes: 9 additions & 9 deletions documentation/classes/Tina4.Auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<ul class="dropdown-menu">
<li>
<a href="../reports/errors.html">
<i class="icon-list-alt"></i>&#160;Errors <span class="label label-info pull-right">191</span>
<i class="icon-list-alt"></i>&#160;Errors <span class="label label-info pull-right">190</span>
</a>
</li>
<li>
Expand Down Expand Up @@ -144,19 +144,19 @@
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-391558862"></a>
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-186199711"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-391558862" class="accordion-body collapse in">
<div id="namespace-186199711" class="accordion-body collapse in">
<div class="accordion-inner">

<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle collapsed" data-toggle="collapse" data-target="#namespace-478383273"></a>
<a class="accordion-toggle collapsed" data-toggle="collapse" data-target="#namespace-1132107379"></a>
<a href="../namespaces/Tina4.html" style="margin-left: 30px; padding-left: 0">Tina4</a>
</div>
<div id="namespace-478383273" class="accordion-body collapse ">
<div id="namespace-1132107379" class="accordion-body collapse ">
<div class="accordion-inner">


Expand All @@ -174,13 +174,13 @@
<li class="class"><a href="../classes/Tina4.Delete.html">Delete</a></li>
<li class="class"><a href="../classes/Tina4.Emailer.html">Emailer</a></li>
<li class="class"><a href="../classes/Tina4.Get.html">Get</a></li>
<li class="class"><a href="../classes/Tina4.ORM.html">ORM</a></li>
<li class="class"><a href="../classes/Tina4.ParseTemplate.html">ParseTemplate</a></li>
<li class="class"><a href="../classes/Tina4.Patch.html">Patch</a></li>
<li class="class"><a href="../classes/Tina4.Post.html">Post</a></li>
<li class="class"><a href="../classes/Tina4.Put.html">Put</a></li>
<li class="class"><a href="../classes/Tina4.Route.html">Route</a></li>
<li class="class"><a href="../classes/Tina4.Routing.html">Routing</a></li>
<li class="class"><a href="../classes/Tina4.Tina4Object.html">Tina4Object</a></li>
</ul>
</div>
</div>
Expand All @@ -207,7 +207,7 @@
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal"><i class="icon-code"></i></a>

<h1><small>\Tina4</small>Auth</h1>
<p><em></em></p>
<p><em>Class Auth for creating and validating secure tokens for use with the API layers</em></p>



Expand Down Expand Up @@ -268,7 +268,7 @@ <h2>Summary</h2>
<dt>File</dt>
<dd><a href="../files/Auth.html"><div class="path-wrapper">Auth.php</div></a></dd>
<dt>Package</dt>
<dd><div class="namespace-wrapper">Default</div></dd>
<dd><div class="namespace-wrapper">Tina4</div></dd>
<dt>Class hierarchy</dt>
<dd class="hierarchy">
<div class="namespace-wrapper">\Tina4\Auth</div>
Expand Down Expand Up @@ -437,7 +437,7 @@ <h1><i class="icon-pushpin"></i></h1>
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on August 18th, 2019 at 10:30.
on August 19th, 2019 at 13:42.
</section>
</section>
</section>
Expand Down
Loading

0 comments on commit 18fc405

Please sign in to comment.