Skip to content

Commit

Permalink
Added a phpunit.xml to handle the test bootstrapping, so that the tes…
Browse files Browse the repository at this point in the history
…ts won't need the extra includes
  • Loading branch information
gsaulmon committed Oct 22, 2012
1 parent 0b2a7e9 commit 20761ce
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
12 changes: 12 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="lib/Core.php"
strict="true"
verbose="true">

<testsuites>
<testsuite name="Tests">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
2 changes: 0 additions & 2 deletions tests/CoreTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
require_once 'tests/TestHelpers.php';
require_once 'PHPUnit/Framework/TestCase.php';

class SparkApi_CoreTest extends PHPUnit_Framework_TestCase {
private $core;
Expand Down
2 changes: 0 additions & 2 deletions tests/TestHelpers.php

This file was deleted.

0 comments on commit 20761ce

Please sign in to comment.