11<?php
22
3+ declare (strict_types=1 );
4+
35namespace spec \Akeneo \Runner \Maintainer ;
46
57use Akeneo \Runner \Maintainer \SkipExampleMaintainer ;
1517/**
1618 * @mixin SkipExampleMaintainer
1719 */
18- class SkipExampleMaintainerSpec extends ObjectBehavior
20+ final class SkipExampleMaintainerSpec extends ObjectBehavior
1921{
2022 function it_is_a_maintainer ()
2123 {
@@ -27,14 +29,14 @@ function its_priority_is_75()
2729 $ this ->getPriority ()->shouldBe (75 );
2830 }
2931
30- function it_supports_specification_that_has_doc_comment (
32+ function it_supports_specification_that_has_require_doc_comment (
3133 ExampleNode $ example ,
3234 SpecificationNode $ specification ,
3335 \ReflectionClass $ refClass
3436 ) {
3537 $ example ->getSpecification ()->willReturn ($ specification );
3638 $ specification ->getClassReflection ()->willReturn ($ refClass );
37- $ refClass ->getDocComment ()->willReturn (' doc comment ' );
39+ $ refClass ->getDocComment ()->willReturn (" /** \n * @require Foo \\ Bar \n */ " );
3840
3941 $ this ->supports ($ example )->shouldBe (true );
4042 }
@@ -79,7 +81,7 @@ function its_prepare_method_does_not_throw_exception_when_specification_requires
7981 $ specification ->getClassReflection ()->willReturn ($ refClass );
8082 $ refClass ->getDocComment ()->willReturn ("/** \n * @require Akeneo\Runner\Maintainer\SkipExampleMaintainer \n */ " );
8183
82- $ this ->shouldNotThrow (' PhpSpec\Exception\Example\ SkippingException' )->duringPrepare ($ example , $ context , $ matchers , $ collaborators );
84+ $ this ->shouldNotThrow (SkippingException::class )->duringPrepare ($ example , $ context , $ matchers , $ collaborators );
8385 }
8486
8587 function its_prepare_method_does_not_throw_exception_when_specification_requires_an_existing_interface (
@@ -94,7 +96,7 @@ function its_prepare_method_does_not_throw_exception_when_specification_requires
9496 $ specification ->getClassReflection ()->willReturn ($ refClass );
9597 $ refClass ->getDocComment ()->willReturn ("/** \n * @require PhpSpec\Runner\Maintainer\Maintainer \n */ " );
9698
97- $ this ->shouldNotThrow (' PhpSpec\Exception\Example\ SkippingException' )->duringPrepare ($ example , $ context , $ matchers , $ collaborators );
99+ $ this ->shouldNotThrow (SkippingException::class )->duringPrepare ($ example , $ context , $ matchers , $ collaborators );
98100 }
99101
100102 function its_prepare_method_ignores_other_annotation (
@@ -104,11 +106,11 @@ function its_prepare_method_ignores_other_annotation(
104106 Specification $ context ,
105107 MatcherManager $ matchers ,
106108 CollaboratorManager $ collaborators
107- ){
109+ ) {
108110 $ example ->getSpecification ()->willReturn ($ specification );
109111 $ specification ->getClassReflection ()->willReturn ($ refClass );
110112 $ refClass ->getDocComment ()->willReturn ("/** \n * @author foo@example.com \n */ " );
111113
112- $ this ->shouldNotThrow (' PhpSpec\Exception\Example\ SkippingException' )->duringPrepare ($ example , $ context , $ matchers , $ collaborators );
114+ $ this ->shouldNotThrow (SkippingException::class )->duringPrepare ($ example , $ context , $ matchers , $ collaborators );
113115 }
114116}
0 commit comments