Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Snippet from helloTestableTest.php
public function testEchoCss()
\WP_Mock::userFunction('is_rtl', array(
'return_in_order' => array(true, false),
$dummy = new \stdClass();
$hello = new helloTestable($dummy);
$this->expectOutputRegex('/.*float: left*./');
$this->expectOutputRegex('/.*float: right*./');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.