1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-06 14:16:32 +02:00

Remove trailing whitespace.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
Edward Z. Yang
2008-12-06 02:28:20 -05:00
parent 3a6b63dff1
commit 2c955af135
476 changed files with 5595 additions and 5547 deletions

View File

@@ -8,27 +8,27 @@
*/
class FSTools_FileSystemHarness extends UnitTestCase
{
protected $dir, $oldDir;
function __construct() {
parent::__construct();
$this->dir = 'tmp/' . md5(uniqid(rand(), true)) . '/';
mkdir($this->dir);
$this->oldDir = getcwd();
}
function __destruct() {
FSTools::singleton()->rmdirr($this->dir);
}
function setup() {
chdir($this->dir);
}
function tearDown() {
chdir($this->oldDir);
}
}

View File

@@ -7,7 +7,7 @@ require_once 'FSTools/FileSystemHarness.php';
*/
class FSTools_FileTest extends FSTools_FileSystemHarness
{
function test() {
$name = 'test.txt';
$file = new FSTools_File($name);
@@ -18,14 +18,14 @@ class FSTools_FileTest extends FSTools_FileSystemHarness
$file->delete();
$this->assertFalse($file->exists());
}
function testGetNonExistent() {
$name = 'notfound.txt';
$file = new FSTools_File($name);
$this->expectError();
$this->assertFalse($file->get());
}
function testHandle() {
$file = new FSTools_File('foo.txt');
$this->assertFalse($file->exists());
@@ -40,6 +40,6 @@ class FSTools_FileTest extends FSTools_FileSystemHarness
$this->assertIdentical('bar', $file->getLine());
$this->assertTrue($file->eof());
}
}