<?php namespace Tests\Selenium2TestCase\SessionCommand; use Tests\Selenium2TestCase\BaseTestCase; class FileTest extends BaseTestCase { public function testUploadFile() { $this->markTestIncomplete("Cannot get this to run <del>reliably</del><em>at all</em> on Travis CI."); $this->url('php/file_upload.php'); $remote_file = $this->file('selenium-1-tests/html/banner.gif'); $this->byName('upload_here') ->value($remote_file); $this->byId('submit') ->click(); $msg_displayed = $this->byId('uploaded') ->displayed(); $this->assertNotEmpty($msg_displayed); } }