-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
24 lines (18 loc) · 853 Bytes
/
README.txt
File metadata and controls
24 lines (18 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
----------------------------------------------
How to launch tests:
1. Install PHPUnit https://phpunit.de/
2. Run "phpunit Test" from this directory
----------------------------------------------
----------------------------------------------
How to launch code with your own trip cards:
There is a file called example.php. It shows how you can use this component in your program.
You can modify TripSorterTest.php to test the whole component with different parameters.
----------------------------------------------
Assumptions:
1. I assume that there is no cycles in the trip path. Trip tickets with cycles example:
- from A to B
- from B to C
- from C to A
- from A to C
- from C to D
2. I assume that air flights gate, seat and number parameters are mandatory. I also assume that train number is mandatory as well.