removed phpunit 3.5 hard check
replacing assertType() with assertInstanceOf()