/** * @covers Pachico\Abtest\Engine::track */ public function testTrack() { $tracking = m::mock('Pachico\\Abtest\\Tracking\\TrackingInterface'); $tracking->shouldReceive('track')->andReturn(true); $configurator = new Config\Chainable(null, $tracking); $this->object = new Engine($configurator); $this->assertTrue($this->object->track()); }
<?php } elseif (1 === $abtest_engine->getTest('image_test')->getVersion()) { ?> <div> <p>This is variation 1 (beach)</p> <img src="https://pixabay.com/static/uploads/photo/2016/01/19/17/37/sunset-beach-1149800_960_720.jpg"> </div> <?php } ?> <?php } ?> <hr> <p>And what follows is the Tracking::track() output</p> <textarea style="width: 600px; height: 200px; padding: 10px"><?php echo htmlspecialchars($abtest_engine->track()); ?> </textarea> </body> </html>