Comments (2)
Hi johannes,
Here's a way to wrap assertContains and make it spinAssertContains (for php >= 5.4):
function spinAssertContains($contained, $container, $timeout = 10)
{
$test = function($contained, $container) use ($self) {
try {
$this->assertContains($contained, $container);
return true;
} catch (Exception $e) {
return false;
}
};
$msg = "'$container' did not contain '$contained'";
$this->spinAssert($msg, $test, array($contained, $container), $timeout);
}
I haven't tested this but something like it should work.
from sausage.
Thanks.
from sausage.
Related Issues (20)
- How to define different sets of browsers? HOT 9
- Childs of WebDriverTestCase fail in Chrome and Safari HOT 2
- Test HTTP request is made? HOT 6
- composer install points to bad repo HOT 2
- BrowserMobProxy Setup
- Sausage should be compatible with Codeception HOT 1
- waitForElementPresent HOT 3
- Set SauceLabs Username and Access Key in Test file HOT 1
- Readme states PHP 5.3+ supported, but unable to get it working in PHP 5.3. Works fine in PHP 5.4 HOT 4
- assertTextPresent and page refreshes
- phpunit/phpunit-selenium (1.4.1) is apparently no more? HOT 1
- Parse error encountered while running Sauce Tests in CircleCi HOT 14
- Cannot communicate securely with peer: no common encryption algorithm(s) HOT 3
- SSL Certificate problem with CURL & saucelabs (on travis) HOT 6
- tunnel-identifier issue with travis-ci
- Travis-ci / Saucelab tests got this error : GnuTLS recv error (-9) HOT 6
- running WebDriverDemo.php, session id is not inserted into urls
- BadMethodCallException: The command http://[email protected]:80/wd/hub/session/url is not recognized by the server. HOT 1
- SeleniumRCDemo.php doesn't work HOT 3
- Do Sausage tests create coverage data?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sausage.