range exercise again with TDD class RangeSpec extends PHPUnit_Framework_TestCase{ function testCloseRangeFromZeroToFive(){ $this->assertEquals("{0,1,2,3,4,5}",rangeZeroToFive("[0,5]");) } } ... function rangeZeroToFive($range){ $openSignPosition = 0; $closeSignPosition = 4; if ($range[openSignPosition]=="("){ return ({0,1,2,3,4,5}); } else if ($range[closeSignPosition]==")") { .... } }