Some new code + GA

This commit is contained in:
James Cole
2015-03-31 19:21:49 +02:00
parent f8a5fb4225
commit e11e53913a
13 changed files with 84 additions and 28 deletions

View File

@@ -1,5 +1,4 @@
<?php
/**
* Class TestCase
*/
@@ -20,4 +19,18 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
return $app;
}
/**
* @param string $class
*
* @return mixed
*/
public function mock($class)
{
$mock = Mockery::mock($class);
$this->app->instance($class, $mock);
return $mock;
}
}