@@ -372,6 +372,14 @@ $a->b->a();
372372$a->b()->c()->d();
373373$a->b->c->d;
374374
375+ // should inline
376+ $t->shouldReceive( 'signUp' )->with( anInstanceOf( 'Foo\\\\ Bar\\\\ Baz' ), $this->app['foo.bar.baz']->getEmail())->once();
377+ $te->shouldReceive( 'signUp' )->with( anInstanceOf( 'Foo\\\\ Bar\\\\ Baz' ), $this->app['foo.bar.baz']->getEmail())->once();
378+ $tes->shouldReceive( 'signUp' )->with( anInstanceOf( 'Foo\\\\ Bar\\\\ Baz' ), $this->app['foo.bar.baz']->getEmail())->once();
379+ // should break
380+ $test->shouldReceive( 'signUp' )->with( anInstanceOf( 'Foo\\\\ Bar\\\\ Baz' ), $this->app['foo.bar.baz']->getEmail())->once();
381+ $a = $t->shouldReceive( 'signUp' )->with( anInstanceOf( 'Foo\\\\ Bar\\\\ Baz' ), $this->app['foo.bar.baz']->getEmail())->once();
382+
375383$this->loooooooooooong->lookup = (int) $this->getRequest()->getParam(
376384 'some-param'
377385);
@@ -468,12 +476,31 @@ $a->a()->b();
468476$a->a()->b();
469477$a->a()->b;
470478$a->b->a();
471- $a
472- ->b()
479+ $a->b()
473480 ->c()
474481 ->d();
475482$a->b->c->d;
476483
484+ // should inline
485+ $t->shouldReceive('signUp')
486+ ->with(anInstanceOf('Foo\\\\ Bar\\\\ Baz'), $this->app['foo.bar.baz']->getEmail())
487+ ->once();
488+ $te->shouldReceive('signUp')
489+ ->with(anInstanceOf('Foo\\\\ Bar\\\\ Baz'), $this->app['foo.bar.baz']->getEmail())
490+ ->once();
491+ $tes->shouldReceive('signUp')
492+ ->with(anInstanceOf('Foo\\\\ Bar\\\\ Baz'), $this->app['foo.bar.baz']->getEmail())
493+ ->once();
494+ // should break
495+ $test
496+ ->shouldReceive('signUp')
497+ ->with(anInstanceOf('Foo\\\\ Bar\\\\ Baz'), $this->app['foo.bar.baz']->getEmail())
498+ ->once();
499+ $a = $t
500+ ->shouldReceive('signUp')
501+ ->with(anInstanceOf('Foo\\\\ Bar\\\\ Baz'), $this->app['foo.bar.baz']->getEmail())
502+ ->once();
503+
477504$this->loooooooooooong->lookup = (int) $this->getRequest()->getParam(
478505 'some-param'
479506);
0 commit comments