<?php

$I = new CoverGuy($scenario);
$I->wantTo('try generate remote codecoverage xml report');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run remote --coverage-html');
$I->seeFileFound('index.html', 'tests/_log/coverage');
<?php

$I = new CoverGuy($scenario);
$I->wantTo('try generate remote codecoverage xml report');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run remote_server --coverage --xml');
$I->seeFileFound('remote_server.remote.coverage.xml', 'tests/_log');
$I->seeInThisFile('coverage generated');
<?php

$I = new CoverGuy($scenario);
$I->wantTo('try generate remote codecoverage xml report');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run remote_server --coverage-xml remote_server.xml');
$I->seeFileFound('remote_server.xml', 'tests/_output');
$I->seeInThisFile('coverage generated');
<?php

$I = new CoverGuy($scenario);
$I->wantTo('try generate remote codecoverage xml report');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run remote_server --coverage-xml remote_server.xml');
$I->seeFileFound('remote_server.xml', 'tests/_log');
$I->seeInThisFile('coverage generated');
<?php

$I = new CoverGuy($scenario);
$I->wantTo('try generate remote codecoverage xml report');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run remote_server --coverage-html remote_server');
$I->seeFileFound('index.html', 'tests/_output/remote_server');
<?php

$I = new CoverGuy($scenario);
$I->wantTo('try generate remote codecoverage text report');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run remote --coverage-text');
$I->seeFileFound('coverage.txt', 'tests/_output');
$I->seeCoverageStatsNotEmpty();
<?php

$I = new CoverGuy($scenario);
$I->wantTo('try generate remote codecoverage xml report');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run remote_server --coverage-html remote_server');
$I->seeFileFound('index.html', 'tests/_log/remote_server');
<?php

$I = new CoverGuy($scenario);
$I->wantTo('try generate remote codecoverage xml report');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run remote_server --coverage --html');
$I->seeFileFound('index.html', 'tests/_log/remote_server.remote.coverage');
<?php

$I = new CoverGuy($scenario);
$I->wantTo('try generate remote codecoverage xml report');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run remote --coverage-html');
$I->seeFileFound('index.html', 'tests/_output/coverage');
$I->seeCoverageStatsNotEmpty();
<?php

$I = new CoverGuy($scenario);
$I->wantTo('try generate remote codecoverage xml report');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run remote --coverage --xml');
$I->seeInShellOutput('Code Coverage Report');
$I->seeInShellOutput('Methods: 100.00% ( 1/ 1)');
$I->seeFileFound('coverage.xml', 'tests/_log');
<?php

$I = new CoverGuy($scenario);
$I->wantTo('try generate remote codecoverage text report');
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run remote --coverage-text');
$I->seeFileFound('coverage.txt', 'tests/_log');