/** * @covers ::fromObject * @expectedException GanbaroDigital\DataContainers\Exceptions\E4xx_UnsupportedType */ public function testThrowsExceptionIfNonObjectPassedIntoOfObject() { // ---------------------------------------------------------------- // setup your test $data = (object) []; // ---------------------------------------------------------------- // perform the change MergeIntoAssignable::fromObject($data, []); }