/** * @expectedException ActiveRecord\RelationshipException */ public function test_throw_error_if_relationship_is_not_a_model() { AuthorWithNonModelRelationship::first()->books; }
/** * @expectedException ActiveRecord\RelationshipException */ public function testThrowErrorIfRelationshipIsNotAModel() { AuthorWithNonModelRelationship::first()->books; }