commit
e607c3ffe5
|
|
@ -147,7 +147,7 @@ class PhpWordTest extends \PHPUnit_Framework_TestCase
|
|||
{
|
||||
$templateFqfn = \join(
|
||||
\DIRECTORY_SEPARATOR,
|
||||
array(\PHPWORD_TESTS_BASE_DIR, 'data', 'templates', 'blanks.docx')
|
||||
array(\PHPWORD_TESTS_BASE_DIR, 'Tests', 'data', 'templates', 'blanks.docx')
|
||||
);
|
||||
$phpWord = new PhpWord();
|
||||
$phpWord->loadTemplate($templateFqfn);
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class Word2007Test extends \PHPUnit_Framework_TestCase
|
|||
$object = new Word2007();
|
||||
$fqFilename = join(
|
||||
DIRECTORY_SEPARATOR,
|
||||
array(PHPWORD_TESTS_BASE_DIR, '_files', 'documents', 'reader.docx')
|
||||
array(PHPWORD_TESTS_BASE_DIR, 'Tests', '_files', 'documents', 'reader.docx')
|
||||
);
|
||||
$this->assertTrue($object->canRead($fqFilename));
|
||||
}
|
||||
|
|
@ -34,7 +34,7 @@ class Word2007Test extends \PHPUnit_Framework_TestCase
|
|||
$object = new Word2007();
|
||||
$fqFilename = join(
|
||||
DIRECTORY_SEPARATOR,
|
||||
array(PHPWORD_TESTS_BASE_DIR, '_files', 'documents', 'foo.docx')
|
||||
array(PHPWORD_TESTS_BASE_DIR, 'Tests', '_files', 'documents', 'foo.docx')
|
||||
);
|
||||
$this->assertFalse($object->canRead($fqFilename));
|
||||
$object = IOFactory::load($fqFilename);
|
||||
|
|
@ -44,7 +44,7 @@ class Word2007Test extends \PHPUnit_Framework_TestCase
|
|||
{
|
||||
$fqFilename = join(
|
||||
DIRECTORY_SEPARATOR,
|
||||
array(PHPWORD_TESTS_BASE_DIR, '_files', 'documents', 'reader.docx')
|
||||
array(PHPWORD_TESTS_BASE_DIR, 'Tests', '_files', 'documents', 'reader.docx')
|
||||
);
|
||||
$object = IOFactory::load($fqFilename);
|
||||
$this->assertInstanceOf('PhpOffice\\PhpWord\\PhpWord', $object);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ date_default_timezone_set('UTC');
|
|||
|
||||
// defining base dir for tests
|
||||
if (!defined('PHPWORD_TESTS_BASE_DIR')) {
|
||||
define('PHPWORD_TESTS_BASE_DIR', realpath(__DIR__ . '/..'));
|
||||
define('PHPWORD_TESTS_BASE_DIR', realpath(__DIR__ . '/PhpWord'));
|
||||
}
|
||||
|
||||
$vendor = realpath(__DIR__ . '/../vendor');
|
||||
|
|
|
|||
Loading…
Reference in New Issue