Renamed Tests to test
|
|
@ -1,6 +1,6 @@
|
||||||
<phpunit backupGlobals="false"
|
<phpunit backupGlobals="false"
|
||||||
backupStaticAttributes="false"
|
backupStaticAttributes="false"
|
||||||
bootstrap="./tests/common/bootstrap.php"
|
bootstrap="./test/bootstrap.php"
|
||||||
colors="true"
|
colors="true"
|
||||||
convertErrorsToExceptions="true"
|
convertErrorsToExceptions="true"
|
||||||
convertNoticesToExceptions="true"
|
convertNoticesToExceptions="true"
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 952 KiB After Width: | Height: | Size: 952 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
|
@ -1,42 +0,0 @@
|
||||||
<?php
|
|
||||||
namespace PhpWord\Tests\Shared;
|
|
||||||
|
|
||||||
use PhpOffice\PhpWord\Shared\File;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @coversDefaultClass \PhpOffice\PhpWord\Shared\File
|
|
||||||
* @runTestsInSeparateProcesses
|
|
||||||
*/
|
|
||||||
class FileTest extends \PHPUnit_Framework_TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Test file_exists()
|
|
||||||
*/
|
|
||||||
public function testFileExists()
|
|
||||||
{
|
|
||||||
$dir = join(\DIRECTORY_SEPARATOR, array(\PHPWORD_TESTS_BASE_DIR, 'data', 'templates'));
|
|
||||||
chdir($dir);
|
|
||||||
$this->assertTrue(File::file_exists('blank.docx'));
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Test file_exists()
|
|
||||||
*/
|
|
||||||
public function testNoFileExists()
|
|
||||||
{
|
|
||||||
$dir = join(\DIRECTORY_SEPARATOR, array(\PHPWORD_TESTS_BASE_DIR, 'data', 'templates'));
|
|
||||||
chdir($dir);
|
|
||||||
$this->assertFalse(File::file_exists('404.docx'));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test realpath()
|
|
||||||
*/
|
|
||||||
public function testRealpath()
|
|
||||||
{
|
|
||||||
$dir = join(\DIRECTORY_SEPARATOR, array(\PHPWORD_TESTS_BASE_DIR, 'data', 'templates'));
|
|
||||||
chdir($dir);
|
|
||||||
$file = 'blank.docx';
|
|
||||||
$expected = $dir . \DIRECTORY_SEPARATOR . $file;
|
|
||||||
$this->assertEquals($expected, File::realpath($file));
|
|
||||||
}
|
|
||||||
}
|
|
||||||