Skip to content

Commit

Permalink
Merge pull request #9 from ash-jc-allen/arch-tests
Browse files Browse the repository at this point in the history
Added basic Pest architecture tests
  • Loading branch information
Sammyjo20 authored Nov 8, 2023
2 parents db57f4d + bfeb906 commit 576fada
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Architecture/DataTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

test('data')
->expect('Saloon\XmlWrangler\Data')
->toBeClasses()
->toExtendNothing()
->toUseStrictTypes();
8 changes: 8 additions & 0 deletions tests/Architecture/ExceptionsTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

test('exceptions')
->expect('Saloon\XmlWrangler\Exceptions')
->toBeClasses()
->toExtend(Exception::class)
->toUseStrictTypes()
->toHaveSuffix('Exception');
6 changes: 6 additions & 0 deletions tests/Architecture/TraitsTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

test('traits')
->expect('Saloon\XmlWrangler\Traits')
->toBeTraits()
->toUseStrictTypes();

0 comments on commit 576fada

Please sign in to comment.