Skip to content

Commit

Permalink
Restructure repo to move tests out of src/
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldogsbody committed Sep 20, 2022
1 parent 6dcf0f0 commit 1fc01d3
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Mingulay follows [Semantic Versioning](https://semver.org/) practices. Until rel
Mingulay requires an object that implements the `Mingulay\SeekerInterface` interface. A `LocalFileSeeker` implementation is provided for working with Zip files on disk.

```php
$seeker = new \Mingulay\Seeker\LocalFileSeeker("src/Test/fixtures/single-file.zip");
$seeker = new \Mingulay\Seeker\LocalFileSeeker("test/fixtures/single-file.zip");
$zip_info = new \Mingulay\ZipRangeReader($seeker);
var_dump($zip_info->files);
```
Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@
"psr-4": {
"Mingulay\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Mingulay\\Test\\": "test/"
}
}
}
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<phpunit colors="true" bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="Mingulay Test Suite">
<directory>./src/Test/</directory>
<directory>./test/</directory>
</testsuite>
</testsuites>
</phpunit>
2 changes: 1 addition & 1 deletion src/Test/LocalSeekerTest.php → test/LocalSeekerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class LocalSeekerTest extends TestCase
{

const FIXTURE_PATH = "src/Test/fixtures/";
const FIXTURE_PATH = "test/fixtures/";

/**
* Test retrieval from the start of the file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class ZipRangeReaderTest extends TestCase
{

const FIXTURE_PATH = "src/Test/fixtures/";
const FIXTURE_PATH = "test/fixtures/";

/**
* Test the construction flow with a valid Zip containing a single file.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1fc01d3

Please sign in to comment.