expectExceptionMessage('Unknown relationship encountered. Relationships should always return a class that extends TiMacDonald\JsonApi\JsonApiResource or TiMacDonald\JsonApi\JsonApiResourceCollection. Instead found [string].'); throw UnknownRelationshipException::from(''); } public function test_from_for_a_array() { $this->expectExceptionMessage('Unknown relationship encountered. Relationships should always return a class that extends TiMacDonald\JsonApi\JsonApiResource or TiMacDonald\JsonApi\JsonApiResourceCollection. Instead found [array].'); throw UnknownRelationshipException::from([]); } public function test_from_for_a_object() { $this->expectExceptionMessage('Unknown relationship encountered. Relationships should always return a class that extends TiMacDonald\JsonApi\JsonApiResource or TiMacDonald\JsonApi\JsonApiResourceCollection. Instead found [stdClass].'); throw UnknownRelationshipException::from(new stdClass); } }