1
exercism fetch php gigasecond

Gigasecond

Calculate the moment when someone has lived for 109 seconds.

A gigasecond is 109 (1,000,000,000) seconds.

Running the tests

  1. Go to the root of your PHP exercise directory, which is <EXERCISM_WORKSPACE>/php. To find the Exercism workspace run

    1
    % exercism debug | grep Workspace
    
  2. Get PHPUnit if you don't have it already.

    1
    2
    % wget --no-check-certificate https://phar.phpunit.de/phpunit.phar
    % chmod +x phpunit.phar
    
  3. Execute the tests:

    1
    % ./phpunit.phar gigasecond/gigasecond_test.php
    

Source

Chapter 9 in Chris Pine's online Learn to Program tutorial. http://pine.fm/LearnToProgram/?Chapter=09

Submitting Incomplete Solutions

It's possible to submit an incomplete solution so you can see how others have completed the exercise.