public function setObjectClassCast() { $t = new \Test\Oo\OoParams(); $result = $t->setStrictName(new \Test\Oo\Param()); $this->assertInstanceOf('Test\\Oo\\Param', $result); }