How would i unit test an interface such as this following simple example:
interface My_App_My_Interface
{
/**
* @return int
*/
public function getInteger();
/**
* @return string
*/
public function getString();
}
also how would this be organised in my applications test directory:
tests > My > App > My > InterfaceTest ??
you don’t test interfaces. you test implementation. interfaces should be checked (by human) if they provide all required functionality