GithubHelp home page GithubHelp logo

upcast's Introduction

Upcast Test

The Upcast development team are required to have a mid month meeting in order to discuss the ongoing improvements and new features to the code base. This meeting is planned for the 14th of every month. Testing is also done on a monthly basis and should be done on the last day of the month.

Rules

If the 14th falls on a Saturday or Sunday then the mid month meeting should be arranged for the following Monday.

If the testing day falls on a Friday, Saturday or Sunday then testing should be set for the previous Thursday.

With this in mind, design a command line script that will write a CSV to file outputting the columns 'Month', 'Mid Month Meeting Date' and 'End of Month Testing Date' for the next six months.

We would encourage you to not use any frameworks with this test.

Please ensure all relevant documentation is supplied.

Documentation for use

Download with git git clone https://github.com/leedavis81/upcast.git

Or Via Http

Navigate to the binary folder (bin) to find the cli.php file, and execute it.

Examples

Show me the help menu

php cli.php -h

Help Menu

Give me a six month meeting schedule

php cli.php -m6

Give me a six month meeting schedule and print it to the screen

php cli.php -m6 --output=Stdout

Example Stdout

Give me a twelve month meeting schedule and save it in the 'meetings' folder

php cli.php -m6 --output=File --output_folder=meetings

Example Run

Running Tests

Although it's suggested that no frameworks should be used, for testing PHPUnit is required. To run the test suite you must first install this dependency. To do this, ensure you're in the root folder of the application (upcast) and run the following commands:

composer install

vendor/bin/phpunit

If you see the green bar, then tests are all passing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.