55use EWZ \Bundle \RecaptchaBundle \Form \Type \EWZRecaptchaType ;
66use EWZ \Bundle \RecaptchaBundle \Locale \LocaleResolver ;
77use PHPUnit \Framework \TestCase ;
8- use Symfony \Component \Form \Extension \Core \Type \TextType ;
9- use Symfony \Component \Form \FormInterface ;
108use Symfony \Component \Form \FormView ;
11- use Symfony \Component \HttpFoundation \RequestStack ;
129use Symfony \Component \OptionsResolver \OptionsResolver ;
1310
1411class EWZRecaptchaTypeTest extends TestCase
@@ -18,7 +15,7 @@ class EWZRecaptchaTypeTest extends TestCase
1815
1916 protected function setUp ()
2017 {
21- $ requestStack = $ this ->createMock (RequestStack::class );
18+ $ requestStack = $ this ->createMock (' Symfony\Component\HttpFoundation\ RequestStack' );
2219 $ localeResolver = new LocaleResolver ('de ' , false , $ requestStack );
2320 $ this ->type = new EWZRecaptchaType ('key ' , true , true , $ localeResolver , 'www.google.com ' );
2421 }
@@ -30,8 +27,7 @@ public function buildView()
3027 {
3128 $ view = new FormView ();
3229
33- /** @var FormInterface $form */
34- $ form = $ this ->createMock (FormInterface::class);
30+ $ form = $ this ->createMock ('Symfony\Component\Form\FormInterface ' );
3531
3632 $ this ->assertArrayNotHasKey ('ewz_recaptcha_enabled ' , $ view ->vars );
3733 $ this ->assertArrayNotHasKey ('ewz_recaptcha_ajax ' , $ view ->vars );
@@ -47,7 +43,7 @@ public function buildView()
4743 */
4844 public function getParent ()
4945 {
50- $ this ->assertSame (TextType::class , $ this ->type ->getParent ());
46+ $ this ->assertSame (' Symfony\Component\Form\Extension\Core\Type\ TextType' , $ this ->type ->getParent ());
5147 }
5248
5349 /**
0 commit comments