Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/everzet/silex-mink
Example project showing Mink usage in Silex project
https://github.com/everzet/silex-mink
Last synced: 24 days ago
JSON representation
Example project showing Mink usage in Silex project
- Host: GitHub
- URL: https://github.com/everzet/silex-mink
- Owner: everzet
- Created: 2013-04-19T08:48:14.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-19T08:48:49.000Z (over 11 years ago)
- Last Synced: 2023-04-19T00:46:00.392Z (over 1 year ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Functional testing in Silex with Mink
=====================================Simple project created as an introduction to standalone [Mink](http://mink.behat.org/).
It is based on the [Silex micro-framework](http://silex.sensiolabs.org/), uses
[Twig](http://twig.sensiolabs.org/) templates and [Symfony](http://symfony.com/)'s
form component.Installation
------------Download [the composer](http://getcomposer.org/):
```bash
curl -s http://getcomposer.org/installer | php
```Install the dependencies:
```bash
php composer.phar install --dev --prefer-dist
```Running test suite
------------------All the project's tests can be run with:
```bash
./bin/phpunit
```Composer created this symbolic link during the installation.
Running in a browser
--------------------To run all tests in a browser (like Selenium) all you have to
do is:
1. Install & run [selenium server](http://docs.seleniumhq.org/download/)
2. Add to `tests/functional/ArticleTest.php`:```php
...protected function setUp()
{
$this->getMink()->setDefaultSessionName('selenium');
}...
```3. Configure your local web server:
```
ServerName behat.devDocumentRoot /var/www/behat.dev/web
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
```