From 4cf16ae0cdcf6f7a1eb99fde95a6c3ef01bd7b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E4=BA=91?= Date: Fri, 13 Jan 2023 18:14:13 +0800 Subject: [PATCH] =?UTF-8?q?docs(README):=20=E5=A2=9E=E5=8A=A0=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 1b3786f..aab04f6 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,10 @@ For instructions on how to install Composer visit [getcomposer.org](https://getc After cloning this repository, change into the newly created directory and run ```bash -composer install -``` - -or if you have installed Composer locally in your current directory - -```bash -php composer.phar install +composer config secure-http false \ +&& composer config repo.lux-map composer https://satis.luxcreo.cn/ \ +&& composer require singularity/hdk-core \ +&& php bin/hyperf vendor:publish singularity/hdk-core ``` This will install all dependencies needed for the project. @@ -35,32 +32,17 @@ This will install all dependencies needed for the project. All tests can be run by executing ```bash -vendor/bin/phpunit +composer test ``` -`phpunit` will automatically find all tests inside the `test` directory and run them based on the configuration in the `phpunit.xml` file. - -### Testing Approach - -The test for the class `Greeting` verifies that the return value of the `sayHello` method returns the string "Hello {name}", where {name} is the value passed through to the constructor. - -## Running the Application - -PHP has an in-built server for local development. This can be started by executing - -``` -php -S localhost:8000 -t public -``` - -Then open your browser at `http://localhost:8000/example.php` - -You should see the text "Hello Ada Lovelace" on your screen. +`Pest` will automatically find all tests inside the `tests` directory and run them based on the configuration in the `phpunit.xml` file. ## Built With - [PHP](https://secure.php.net/) - [Composer](https://getcomposer.org/) - - [PHPUnit](https://phpunit.de/) + - [Hyperf](https://hyperf.wiki/2.2/) + - [Pest](https://pestphp.com/) ## License