Permalink
Browse files

Fixed test suite setup

  • Loading branch information...
1 parent aaf173d commit fabd070466a5f0b5e9186537b53b1b35f919d746 @ge-org committed Sep 25, 2011
View
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<phpunit backupGlobals="false"
+ backupStaticAttributes="false"
+ colors="true"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ processIsolation="false"
+ stopOnFailure="false"
+ syntaxCheck="false"
+ bootstrap="src/autoload.php"
+>
+ <testsuites>
+ <testsuite name="PHP File Upload Test Suite">
+ <directory>./tests/</directory>
+ </testsuite>
+ </testsuites>
+
+ <filter>
+ <whitelist>
+ <directory>./src/</directory>
+ </whitelist>
+ </filter>
+</phpunit>
File renamed without changes.
File renamed without changes.
View
@@ -0,0 +1,5 @@
+<?php
+
+ require_once __DIR__.'/Faultier/FileUpload/File.php';
+
+?>
@@ -2,7 +2,7 @@
use Faultier\FileUpload\File;
- class FileTest extends PHPUnit_Framework_TestCase {
+ class FileTest extends \PHPUnit_Framework_TestCase {
protected $file;
@@ -11,7 +11,7 @@ protected function setUp() {
}
public function testFileCreated() {
- $this->assertInstanceOf('File', $this->file);
+ $this->assertInstanceOf('Faultier\FileUpload\File', $this->file);
}
}

0 comments on commit fabd070

Please sign in to comment.