I am use to working with frameworks like zend or rails and using various testing methodologies. How ever, I cannot fathom how to test a regular, non framework based class in php that has the following methods:
class Example{
public function add(){}
public function edit(){}
public function delete(){}
public function list(){}
}
I know you need a testing or tests or test folder, that parts down. would the class inside be something like:
class ExampleTest extends PHPUnit_Framework_TestCase{}
if so what are the function? the same as the above? will it know to use the example class or do I have to require it?
when it comes to testing with out a framework like zend or something else I am lost....Your help is appreciated.
Note: I am not using any type of framework (aside from phpunit) so pointing me to zend or cakephp is not going to help. this is simply written from scratch.