fix builder mocking

This commit is contained in:
meadsteve 2013-11-25 21:30:10 +00:00
parent 03a81a3283
commit a2c25d2d8f
2 changed files with 4 additions and 5 deletions

View file

@ -66,7 +66,7 @@ class EmailTest extends \PHPUnit_Framework_TestCase
'log'
),
array(),
"mockBuilder",
"mockBuilder_email",
false
);

View file

@ -37,9 +37,9 @@ class PHPUnitTest extends \PHPUnit_Framework_TestCase
{
$this->mockCiBuilder = $this->getMock(
'\PHPCI\Builder',
array('findBinary'),
array('findBinary', 'executeCommand'),
array(),
"mockBuilder",
"mockBuilder_phpUnit",
false
);
$this->mockCiBuilder->buildPath = "/";
@ -94,8 +94,7 @@ class PHPUnitTest extends \PHPUnit_Framework_TestCase
* @covers PHPUnit::execute
* @covers PHPUnit::runDir
*/
public function testExecute_CallsExecuteCommandOnceWhenGivenStringDirectory(
)
public function testExecute_CallsExecuteCommandOnceWhenGivenStringDirectory()
{
chdir('/');