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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user