Skip to content

Commit

Permalink
Make autoloading test files possible
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Nov 10, 2015
1 parent 87af1d0 commit 7fac354
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@
"SeatGeek": "src/"
}
},
"autoload-dev": {
"psr-4": {
"SeatGeek\\Sixpack\\Test\\": "tests/"
}
},
"minimum-stability": "dev"
}
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="true"
bootstrap="tests/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
Expand Down
9 changes: 9 additions & 0 deletions tests/Session/BaseTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace SeatGeek\Sixpack\Test\Session;

use \PHPUnit_Framework_TestCase;

class BaseTest extends PHPUnit_Framework_TestCase
{
}
3 changes: 3 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

require_once 'vendor/autoload.php';

0 comments on commit 7fac354

Please sign in to comment.