Skip to content

Commit cba1db3

Browse files
authored
Merge pull request #17 from tattersoftware/test
Assets Test Case
2 parents 4d0973e + abc3e58 commit cba1db3

File tree

6 files changed

+9
-119
lines changed

6 files changed

+9
-119
lines changed

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ you will need to include both.
122122

123123
## Testing
124124

125-
This library includes some PHPUnit extension classes in **src/Test/** to assist with testing
126-
vendor-sourced Bundles and Publishers. These are uses to test the files from this library
127-
but are also available for other projects that use `Tatter\Frontend`. To test your own
128-
classes simply extend the appropriate test case and add a data provider method with your
129-
class name and criteria to meet. See the test files in **tests/** for examples.
125+
This library includes a PHPUnit extension classes in **src/Test/** to assist with testing
126+
vendor-sourced Publishers. `Tatter\Assets` has a similar test case for Bundles. These two
127+
classes are used to test the files from this library but are also available for other projects
128+
that use `Tatter\Frontend`. To test your own classes simply extend the appropriate test case
129+
and add a data provider method with your class name and criteria to meet. See the test files
130+
in **tests/** for examples.

src/Test/BundlesTestCase.php

-57
This file was deleted.

src/Test/PublishersTestCase.php

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Tatter\Frontend\Test;
44

5+
use Tatter\Assets\Test\TestCase;
56
use Tatter\Frontend\FrontendPublisher;
67

78
abstract class PublishersTestCase extends TestCase

src/Test/TestCase.php

-55
This file was deleted.

tests/BundlesTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Tatter\Frontend\Bundles;
44

5-
use Tatter\Frontend\Test\BundlesTestCase;
5+
use Tatter\Assets\Test\BundlesTestCase;
66

77
/**
88
* @internal

tests/FrontendPublisherTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3+
use Tatter\Assets\Test\TestCase;
34
use Tatter\Frontend\FrontendPublisher;
4-
use Tatter\Frontend\Test\TestCase;
55

66
/**
77
* @internal

0 commit comments

Comments
 (0)