aboutsummaryrefslogtreecommitdiffstats
path: root/dev/php
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2018-04-06 17:43:58 +0100
committerSilvino Silva <silvino@bk.ru>2018-04-06 17:43:58 +0100
commit6ee060f04bdd91b66b8dfaa21f29758ae450348f (patch)
tree0ce231727fdbe28bc1ed64546be93f1ee988d7b6 /dev/php
parent746c2f76a305d4251f58f3327f8147f60a1be38f (diff)
parent152177eeca633a26a1228cfded025b5a7d861c66 (diff)
downloaddoc-6ee060f04bdd91b66b8dfaa21f29758ae450348f.tar.gz
Merge branch 'r-0.3.3' into develop
Diffstat (limited to 'dev/php')
-rw-r--r--dev/php/index.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev/php/index.html b/dev/php/index.html
index a4549f1..45e8f79 100644
--- a/dev/php/index.html
+++ b/dev/php/index.html
@@ -30,6 +30,51 @@
<p>Open your browser and browse http://localhost:8000,
you should see "Hello World".</p>
+ <h2 id="profiling">Profiling</h2>
+
+ <h2 id="testing">Testing</h2>
+
+ <p>Create folder tests for phpunit files with settings, inside
+ create another called tests to create tests to be performed on
+ the code.</p>
+
+ <pre>
+ $ mkdir -p tests/tests
+ $ cd tests
+ </pre>
+
+ <p>Create a test tests/EngineTest.php;</p>
+
+ <pre>
+ &lt;?php
+ declare(strict_types=1);
+
+ use PHPUnit\Framework\TestCase;
+
+ final class EngineTest extends TestCase {
+
+ public function testCanBeCreated(){
+
+ $engine = new engine();
+
+ $this-&gt;assertInstanceOf(engine::class, $engine);
+
+ }
+ }
+ </pre>
+
+ <p>Create phpunit.xml;</p>
+
+ <pre>
+ $ phpunit --generate-configuration
+ </pre>
+
+ <p>Run the test;</p>
+
+ <pre>
+ $ phpunit
+ </pre>
+
<a href="../index.html">Development Index</a>
<p>
This is part of the c9-doc Manual.