phpunit $_SERVER['DOCUMENT_ROOT'] не работает

_____________________________________________
Источники(читать подробнее)=
http://yiiframework.ru/forum/viewtopic.php?f=3&t=5276
http://php.bigresource.com/apache-filesmatch-directive-and-Want-to-include-the-path-to-file-but-not-working-right--bW0nQvzGj.html
____________________________________
Ключевые слова и фразы(для поиска)=

$_SERVER['DOCUMENT_ROOT'] doesn't work in PHPUnit

Comments

vedro-compota's picture

F

Time: 0 seconds, Memory: 3.00Mb

There was 1 failure:

1) CoreModuleTest::testArrayFill
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 'title' => 'Нелинейный отра...ния'
+ 'title' => null
'path2' => null
'level' => 2
)

C:\data\localhost\www\tp\world-shared-folders\WSF\scripts\tests\CoreModuleTest.php:15
C:\php\phpunit:46

FAILURES!
Tests: 1, Assertions: 1, Failures: 1.

===============================

_____________
матфак вгу и остальная классика =)