Solution:
Check your include_path:
echo get_include_path();
It should contain the directory to which your TW/Talk/Entity/Talk.php
is relative. If it is not there, then you must add it either to php.ini
or to PHPUnit’s bootstrap.
You can easily test if PHP can find your file using your include path with this:
var_dump( stream_resolve_include_path('TW/Talk/Entity/Talk.php') );