forked from r3nyou/devmentor-BE101-PHP
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update README.md add index.php
- Loading branch information
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
## set up | ||
``` | ||
docker build -t php-74 . | ||
docker run -it --rm -v "$PWD":/var/www php-74 bash | ||
docker build -t php-fpm-82 . | ||
docker run -it --rm -v "$PWD":/var/www php-fpm-82 bash | ||
composer install | ||
``` | ||
|
||
execute unit test | ||
``` | ||
./vendor/bin/phpunit | ||
./vendor/bin/phpunit tests/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
require_once 'vendor/autoload.php'; | ||
|
||
use App\HelloWorld; | ||
|
||
$helloWorld = new HelloWorld(); | ||
echo $helloWorld->say(); |