https://github.com/andhikayuana/intercom-test
https://github.com/andhikayuana/intercom-test
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andhikayuana/intercom-test
- Owner: andhikayuana
- Created: 2020-04-10T09:57:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-11T11:08:54.000Z (over 5 years ago)
- Last Synced: 2025-01-18T03:45:52.378Z (9 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Intercom Test
## Requirements
* [Git](https://git-scm.com/)
* [PHP 7.2](https://www.php.net/)
* [Composer](https://getcomposer.org/)## How to Install
* clone this repository using git
* go to project directory
* install project dependencies using `composer install````sh
git clone git@github.com:andhikayuana/intercom-test.git
cd intercom-test
composer install
```## How to Execute
you can execute inside the project directory by using this command
```sh
php yuana
# or you can use
make run
```if you need to test with another file, you can replace `storage/customers.txt` file
and then you will see the invited customers that printed on the terminal and you can find the output file inside the `tmp/output.txt`
if you need to see the output sample, you can find in `storage/sample-output.txt`
## Running Test
To run the test, you can execute `make test` command and then you can find the test coverage inside `tmp/coverage/index.html`
## Misc.
if you found an error like `PHP Fatal error: Allowed memory size of 268435456 bytes exhausted` you need to increase the PHP memory limit. [reference](https://www.php.net/manual/en/ini.core.php#ini.memory-limit)
if you need to empty the tmp directory, you can execute `make clean` command