diff options
author | Silvino <silvino@bk.ru> | 2019-06-28 03:58:25 +0100 |
---|---|---|
committer | Silvino <silvino@bk.ru> | 2019-06-28 03:58:25 +0100 |
commit | bb4fd340e7a1faffc363c6baa2f67e84b3a34f0c (patch) | |
tree | b8e4bed0ede5b48bf26b920949e83e36c1fe431c /dev/php/index.html | |
parent | 296be79a3b724db67a37244a67cfb3e4ef6b652f (diff) | |
parent | fe94262de38aafc839963ced9b82ee45d81b65f5 (diff) | |
download | doc-bb4fd340e7a1faffc363c6baa2f67e84b3a34f0c.tar.gz |
doc release 0.5.4
Diffstat (limited to 'dev/php/index.html')
-rw-r--r-- | dev/php/index.html | 98 |
1 files changed, 25 insertions, 73 deletions
diff --git a/dev/php/index.html b/dev/php/index.html index fdb2b09..fb25bcf 100644 --- a/dev/php/index.html +++ b/dev/php/index.html @@ -2,89 +2,41 @@ <html dir="ltr" lang="en"> <head> <meta charset='utf-8'> - <title>c9 PHP</title> + <title>PHP</title> </head> <body> <a href="../index.html">Development Index</a> - <h1>c9 PHP</h1> - - - <h2>Hello World</h2> - - <p>PHP comes with a built in server that helps to speed up - developing by not having to configure a system web server, - first create file index.php;</p> - - <pre> - <?php - echo "Hello World"; - </pre> - - <p>Now run the server;</p> - - <pre> - $ php -S localhost:8000 - </pre> - - <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> - <?php - declare(strict_types=1); - - use PHPUnit\Framework\TestCase; - - final class EngineTest extends TestCase { - - public function testCanBeCreated(){ - - $engine = new engine(); - - $this->assertInstanceOf(engine::class, $engine); - - } - } - </pre> - - <p>Create phpunit.xml;</p> - - <pre> - $ phpunit --generate-configuration - </pre> - - <p>Run the test;</p> - - <pre> - $ phpunit - </pre> + <h1>PHP</h1> + + <ul> + <li><a href="hello.html">Hello World</a> + <ul> + <li><a href="hello.html#profiling">Profiling</a></li> + <li><a href="hello.html#testing">Testing</a></li> + </ul> + </li> + <li><a href="">Types & Variables</a></li> + <li><a href="">Operators & Expressions</a></li> + <li><a href="">Control Flow</a></li> + <li><a href="">Functions</a></li> + <li><a href="">Input & Output</a></li> + </ul> + + <ul> + <li><a href="laravel.html">Laravel Framework</a></li> + </ul> + <ul> + + <li>PHP Unit</li> + </ul> <a href="../index.html">Development Index</a> <p> This is part of the Hive System Documentation. - Copyright (C) 2018 + Copyright (C) 2019 Hive Team. See the file <a href="../../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> - - </body> - </html> - |