This commit is contained in:
Roman Syroeshko 2014-03-25 18:38:05 +04:00
parent 6b17492383
commit 4261f5a9f2
3 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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');