Existuje debug mode v Testeru? Jak z Testeru zjistím proč neprošel test – nevím jakého typu je objekt?

Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
motorcb
Člen | 551
+
0
-

Zdravím, mám následujíc test:

function testSomething()
{
    $presenterFactory = $this->container->getByType( 'Nette\Application\IPresenterFactory' );
    $presenter = $presenterFactory->createPresenter( 'Sign' );
    $presenter->autoCanonicalize = FALSE;

    $request = new Nette\Application\Request( 'Sign', 'GET', array( 'action' => 'in' ) );
    $response = $presenter->run( $request );

    Assert::true( $response instanceof Nette\Application\Responses\TextResponse );
}

Který neprochází a vrací tuto chybu:

-- FAILED: Sandbox\tests\ExampleTest.phpt
   Failed: FALSE should be TRUE in testSomething()

   in Tipliga\tests\ExampleTest.phpt(44) Tester\Assert::true()
   in [internal function]Test\ExampleTest->testSomething()
   in Tester\Framework\TestCase.php(130) call_user_func_array()
   in Tester\Framework\TestCase.php(113) Tester\TestCase->runTest()
   in Tester\Framework\TestCase.php(48) Tester\TestCase->runMethod()
   in Tipliga\tests\ExampleTest.phpt(51) Tester\TestCase->run()


FAILURES! (1 test, 1 failure, 0.2 seconds)

Tester v1.2

Jak zjistím jaký jakého typu je opravdu $response ?
Echo, dump v Testeru nefungují…

Editoval motorcb (15. 8. 2014 16:09)

David Kudera
Člen | 455
+
-1
-

Výsledky assertů se ukládali do složky outputs nebo tak nějak..

motorcb
Člen | 551
+
0
-

Složku outputs nikde nevidím. Tester mám verze 1.2

David Matějka
Moderator | 6445
+
+1
-

Nepouzivej Assert::true, ale Assert::type

Editoval matej21 (15. 8. 2014 16:29)

motorcb
Člen | 551
+
0
-

Díky, vyřešeno.