Skip to content
Snippets Groups Projects
Commit 87603090 authored by Thomas Flori's avatar Thomas Flori
Browse files

Update README.md

parent aa924218
No related branches found
No related tags found
No related merge requests found
Pipeline #192 passed with stage
......@@ -119,7 +119,7 @@ class ApplicationTest extends PHPUnit_Framework_TestCase {
$mock = $this->getMock(mysqli::class);
$mock->expects($this->once())->method('query')
->with('SELECT * FROM table');
DI::set('database', function() use($mock) { return $mock; });
DI::set('database', $mock);
someStaticFunction();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment