php Programming Glossary: stringone
How do I write unit tests in PHP with a procedural codebase? http://stackoverflow.com/questions/899390/how-do-i-write-unit-tests-in-php-with-a-procedural-codebase function testShouldConcatenateTwoStringsAndReturnResult stringOne 'foo' stringTwo 'bar' expectedOutput 'foobar' output myCustomCatFunction.. 'bar' expectedOutput 'foobar' output myCustomCatFunction stringOne stringTwo this assertEquals expectedOutput output In the bad.. function testShouldConcatenateTwoStringsAndReturnTrue stringOne 'foo' stringTwo 'bar' expectedOutput 'foobar' output myCustomCatFunction..
|