@@ -101,19 +101,19 @@ Assert::same(0, count($authorBooks));
101101// exceptions
102102$ book = $ books [2 ];
103103
104- Assert::exception (function () use ($ book ) {
104+ Assert::exception (function () use ($ book ) {
105105 $ book ->find ('author ' , getQuery ());
106106}, 'LeanMapperQuery \\Exception \\InvalidRelationshipException ' );
107107
108- Assert::exception (function () use ($ book ) {
108+ Assert::exception (function () use ($ book ) {
109109 $ book ->find ('name ' , getQuery ());
110110}, 'LeanMapperQuery \\Exception \\InvalidArgumentException ' );
111111
112- Assert::exception (function () use ($ book ) {
112+ Assert::exception (function () use ($ book ) {
113113 $ book ->find ('xyz ' , getQuery ());
114114}, 'LeanMapperQuery \\Exception \\MemberAccessException ' );
115115
116- Assert::exception (function () {
116+ Assert::exception (function () {
117117 $ book = new Book ;
118118 $ book ->find ('xyz ' , getQuery ());
119119}, 'LeanMapperQuery \\Exception \\InvalidStateException ' );
@@ -122,15 +122,15 @@ Assert::exception(function () {
122122
123123$ author = $ authors [2 ];
124124
125- Assert::exception (function () use ($ author ) {
125+ Assert::exception (function () use ($ author ) {
126126 $ author ->testBooks ();
127127}, 'LeanMapperQuery \\Exception \\InvalidMethodCallException ' );
128128
129- Assert::exception (function () use ($ author ) {
129+ Assert::exception (function () use ($ author ) {
130130 $ author ->testBooks ('a ' );
131131}, 'LeanMapperQuery \\Exception \\InvalidArgumentException ' );
132132
133- Assert::exception (function () use ($ author ) {
133+ Assert::exception (function () use ($ author ) {
134134 $ author ->testBooks (getQuery ());
135135}, 'LeanMapper \\Exception \\InvalidMethodCallException ' );
136136
0 commit comments