Behat base_url issue or sqlite database <p>I access my page at <a href="http://web.dev/web/app_behat.php" rel="nofollow">http://web.dev/web/app_behat.php</a> and it works when I do it manually in browser.</p> <p>So I set</p> <pre><code>base_url: "http://web.dev/web/app_behat.php/" </code></pre> <p>and I get no route matched for any route but if i set</p> <pre><code>base_url: "http://web.dev/app_behat.php/" </code></pre> <p>route seems to be matched but i get missing table error, i have set up <a href="https://github.com/Behat/CommonContexts#example-using-symfonydoctrinecontext-to-reset-doctrine" rel="nofollow">SymfonyDoctrineContext</a> to take care of schema creation.</p> <p>Full behat.yml:</p> <pre><code>default: formatter: name: progress context: class: FootballRadar\Features\Context\FeatureContext extensions: Behat\Symfony2Extension\Extension: mink_driver: true kernel: env: test debug: true Behat\MinkExtension\Extension: base_url: "http://web.dev/app_behat.php/" default_session: symfony2 show_cmd: 'open -a "Google Chrome" %s' </code></pre> <p>EDIT:</p> <p>My config_behat.yml:</p> <pre><code>imports: - { resource: "config_dev.yml" } assetic: debug: true use_controller: enabled: true profiler: false framework: test: ~ session: storage_id: session.storage.mock_file profiler: collect: false web_profiler: toolbar: false intercept_redirects: false swiftmailer: disable_delivery: true doctrine: dbal: connections: default: driver: pdo_sqlite user: behat path: %kernel.root_dir%/behat/default.db.cache charset: utf8 model: driver: pdo_sqlite user: behat path: %kernel.root_dir%/behat/model.db.cache charset: utf8 monolog: handlers: test: type: test </code></pre> <p>Seems that all of You misunderstood my question and/or completely ignored my first sentence.</p> <p>I have a working application and I access it using </p> <p><a href="http://web.dev/web/" rel="nofollow">http://web.dev/web/</a> (<a href="http://web.dev/web/app.php/" rel="nofollow">http://web.dev/web/app.php/</a>) &lt;-- for prod</p> <p><a href="http://web.dev/web/app_dev.php/" rel="nofollow">http://web.dev/web/app_dev.php/</a> &lt;-- for dev</p> <p><a href="http://web.dev/web/app_behat.php/" rel="nofollow">http://web.dev/web/app_behat.php/</a> &lt;-- for behat</p> <p>all of them work as when i use them manually in chrome or other browser</p> <p>That is why I am surprised why <code>http://web.dev/web/app_behat.php/</code> gives me</p> <pre><code>No route found for "GET /web/app_behat.php/login" </code></pre> <p>and</p> <p><code>http://web.dev/app_behat.php/</code> gives</p> <pre><code>SQLSTATE[HY000]: General error: 1 no such table: users_new </code></pre> <p>With little debugging I confirmed <code>SymfonyDoctrineContext</code> does read my entities mappings and issues queries to create db schema, both db files have read/write permissions (for sake of test I gave them 777)</p> <p>Another thing I just realised, all this errors gets written to <code>test.log</code> file instead of <code>behat.log</code>. I create kernel with <code>$kernel = new AppKernel('behat', true);</code></p> <p>Maybe I just greatly misunderstood how behat is supposed to work?</p> <p>EDIT2:</p> <p>I have noticed that there are no entries made to apache access log when running behat feature for either of the paths</p> <p>versions i'm using from composer.json</p> <pre><code> "behat/behat": "2.5.*@dev", "behat/common-contexts": "1.2.*@dev", "behat/mink-extension": "*", "behat/mink-browserkit-driver": "*", "behat/mink-selenium2-driver": "*", "behat/symfony2-extension": "*", </code></pre>