Codeception/Codeception — pull request #284 by Ragazzo (2013-04-24 14:59:24+00:00)
Title: New mink methods introduced for select elements

This one is for this issue https://github.com/Codeception/Codeception/issues/261. This PR add new mink methods for html-select element, according to HTML4 only ```selected``` is enough for option to be selected, according XHMTL it must be ```selected="selected"```, so i've decided that simple ```option[selected]``` would be enough to check if option is selected and to satisfy both of them. I think that this implementation can be called a "hack", but it is better then implementing fore each low-level mink session drivers this methods. Also coudl you please add implementation of this methods to ```Framework``` so later we can add signature of them to the ```WebInterface``` and some docs in interface:
```php
/**
* Assert if the specified option is selected.
* Use css selector to match.
*
* Example:
*
* ``` php
* seeOptionIsSelected('#country','USA');
* $I->seeOptionIsSelected('#register_form select[name="country"]','USA');
*
* ```
*
* @param $select
* @param $option
*/
public function seeOptionIsSelected($select, $option);

/**
* Assert if the specified option is not selected.
* Use css selector to match.
*
* Example:
*
* ``` php
* dontSeeOptionIsSelected('#country','SomeBadCounry');
* $I->dontSeeOptionIsSelected('#register_form select[name="country"]','SomeBadCounry');
*
* ```
*
* @param $select
* @param $option
*/
public function dontSeeOptionIsSelected($select, $option);
```