Hi

I would like to launch test on my test project but i have an error (see below):
 
PHPUnit 3.5.3 by Sebastian Bergmann.

E

Time: 0 seconds, Memory: 6.00Mb

There was 1 error:

1) Application\MetaBundle\Tests\Controller\MainControllerTest::testAbout
RuntimeException: Unable to guess the Kernel directory.

/www/virtualhosts/meta2/src/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php:78
/www/virtualhosts/meta2/src/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php:39
/www/virtualhosts/meta2/src/Application/MetaBundle/Tests/Controller/MainControlerTest.php:11

FAILURES!
Tests: 1, Assertions: 0, Errors: 1.

---------------------
My test:

namespace Application\MetaBundle\Tests\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class MainControllerTest extends WebTestCase
{
    public function testAbout()
    {
        $client = $this->createClient();
        $crawler = $client->request('GET', '/about');
        $this->assertTrue($client->getResponse()->isSuccessful());
        $this->assertEquals(1, $crawler->filter('h1:contains("A propos de 
Meta")')->count());
    }
}

---------------------
phpunit config

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="true"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="../src/autoload.php"
>
  <testsuites>
      <testsuite name="Project Test Suite">
          <directory>../src/Application/*/Tests</directory>
      </testsuite>
  </testsuites>

  <filter>
      <whitelist>
          <directory>../src/Application</directory>
          <exclude>
              <directory>../src/Application/*/Resources</directory>
              <directory>../src/Application/*/Tests</directory>
          </exclude>
      </whitelist>
  </filter>
</phpunit>



I don't find the problem.

Please help me

Thanks

Bertrand

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to