1<?php 2 3namespace CaseHelper\Test\Unit\CaseHelper; 4 5use PHPUnit_Framework_TestCase; 6 7 8class TestCase extends PHPUnit_Framework_TestCase { 9 10 protected $caseHelper = null; 11 12 /** 13 * A shorthand for asserting correct conversions. 14 * 15 * @param string $methodName 16 * @param array $inputsAndExpectations inputs as keys, Expectations as values 17 */ 18 protected function assertCaseHelperConvertsCasesCorrectly($methodName, 19 array $inputsAndExpectations) { 20 21 foreach ($inputsAndExpectations as $input => $expected) { 22 $this->assertEquals($expected, call_user_func(array( 23 $this->caseHelper, $methodName), $input)); 24 } 25 } 26} 27