Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meetmatt/dummy
Dummy SQL and PHP tests
https://github.com/meetmatt/dummy
Last synced: 8 days ago
JSON representation
Dummy SQL and PHP tests
- Host: GitHub
- URL: https://github.com/meetmatt/dummy
- Owner: meetmatt
- Created: 2015-11-16T12:33:44.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-16T12:35:46.000Z (about 9 years ago)
- Last Synced: 2024-03-19T04:50:26.229Z (8 months ago)
- Language: PHP
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQL dummy test
Database schema and sample data is in sql directory.
## Task 1
Query all humans and corresponding comma-separated vacation destinations.
Output columns: name, destinations.
Query: query01.sql
## Task 2
Query humans who have both Cuba and Sochi among their vacation destinations.
Output columns: name.
Query: query02.sql
## Task 3
Query humans who only have Cuba and Sochi among their vacation destinations.
Output columns: name.
Query: query03.sql
# PHP dummy test
## Task 1
Implement a simple CLI script which takes a sting as an input, reverses it, strips vowels and outputs to stdout.
### Example
Input: Hello world!
Output: !dlrw llH### Answer
```bash
$ ./bin/mirror.php Hello world!
!dlrw llH
```
## Task 2
Cover class/function from previous task with PHPUnit tests.
### Answer
```bash
$ composer install
$ ./vendor/bin/phpunit ./tests/functional.php
PHPUnit 4.8.18 by Sebastian Bergmann and contributors.
....
Time: 153 ms, Memory: 3.75Mb
OK (4 tests, 4 assertions)
```