@@ -109,12 +109,11 @@ public function can_get_template_contents()
109109 $ this ->assertSame ('<footer>Hello World</footer> ' , $ dataProvider ->getPatternTemplate ('components/misc/footer ' ));
110110 }
111111
112- /**
113- * @test
114- * @expectedException Rareloop\Primer\Exceptions\PatternNotFoundException
115- */
112+ /** @test */
116113 public function can_not_get_template_contents_if_partial_id_provided ()
117114 {
115+ $ this ->expectException (\Rareloop \Primer \Exceptions \PatternNotFoundException::class);
116+
118117 vfsStream::setup ();
119118 $ root = vfsStream::create ([
120119 'foo ' => [
@@ -215,12 +214,11 @@ public function can_check_if_state_data_exists_for_a_pattern_as_php()
215214 $ this ->assertFalse ($ dataProvider ->patternHasState ('components/misc/header ' , 'unexpected ' ));
216215 }
217216
218- /**
219- * @test
220- * @expectedException Rareloop\Primer\Exceptions\PatternNotFoundException
221- */
217+ /** @test */
222218 public function patternHasState_throws_exception_if_pattern_does_not_exist ()
223219 {
220+ $ this ->expectException (\Rareloop \Primer \Exceptions \PatternNotFoundException::class);
221+
224222 vfsStream::setup ();
225223 $ root = vfsStream::create ([
226224 'foo ' => [
@@ -535,12 +533,11 @@ public function getPatternStateData_returns_empty_array_when_no_data_is_availabl
535533 $ this ->assertSame ([], $ data );
536534 }
537535
538- /**
539- * @test
540- * @expectedException Rareloop\Primer\Exceptions\PatternNotFoundException
541- */
536+ /** @test */
542537 public function getPatternStateData_throws_exception_when_pattern_is_invalid ()
543538 {
539+ $ this ->expectException (\Rareloop \Primer \Exceptions \PatternNotFoundException::class);
540+
544541 vfsStream::setup ();
545542 $ root = vfsStream::create ([
546543 'foo ' => [
@@ -592,12 +589,11 @@ public function getPatternStateData_does_not_fall_over_if_no_paths_are_provided(
592589 $ this ->assertSame ([], $ dataProvider ->getPatternStateData ('not/found ' , 'state ' ));
593590 }
594591
595- /**
596- * @test
597- * @expectedException Rareloop\Primer\Exceptions\PatternNotFoundException
598- */
592+ /** @test */
599593 public function getPattern_does_not_fall_over_if_no_paths_are_provided ()
600594 {
595+ $ this ->expectException (\Rareloop \Primer \Exceptions \PatternNotFoundException::class);
596+
601597 $ dataProvider = new FileSystemPatternProvider ([], 'md ' );
602598
603599 $ dataProvider ->getPattern ('not/found ' );
0 commit comments