1
exercism fetch php bracket-push

Bracket Push

Given a string containing brackets [], braces {} and parentheses (), verify that all the pairs are matched and nested correctly.

Making the Test Suite Pass

  1. Get PHPUnit.

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

    1
    % phpunit.phar wordy/wordy_test.php
    

Source

Ginna Baker

Submitting Incomplete Solutions

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