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

PSR-2 reformatting PHPDoc corrections

With minor corrections.

Signed-off-by: Marcus Bointon <marcus@synchromedia.co.uk>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
Marcus Bointon
2013-07-16 13:56:14 +02:00
committed by Edward Z. Yang
parent 19eee14899
commit fac747bdbd
433 changed files with 13302 additions and 6690 deletions

View File

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

View File

@@ -8,7 +8,8 @@ require_once 'FSTools/FileSystemHarness.php';
class FSTools_FileTest extends FSTools_FileSystemHarness
{
function test() {
public function test()
{
$name = 'test.txt';
$file = new FSTools_File($name);
$this->assertFalse($file->exists());
@@ -19,14 +20,16 @@ class FSTools_FileTest extends FSTools_FileSystemHarness
$this->assertFalse($file->exists());
}
function testGetNonExistent() {
public function testGetNonExistent()
{
$name = 'notfound.txt';
$file = new FSTools_File($name);
$this->expectError();
$this->assertFalse($file->get());
}
function testHandle() {
public function testHandle()
{
$file = new FSTools_File('foo.txt');
$this->assertFalse($file->exists());
$file->open('w');