コード例 #1
0
ファイル: KumiteTest.php プロジェクト: lwc/kumite
 public function testStartTest()
 {
     $sa = Mockery::mock('Kumite\\Adapters\\StorageAdapter');
     $ca = Mockery::mock('Kumite\\Adapters\\CookieAdapter');
     $testConfig = $this->getTestConfig();
     $this->controller->shouldReceive('startTest')->with('myTest', 'blarg')->once();
     $k = new Kumite(array('storageAdapter' => $sa, 'cookieAdapter' => $ca, 'tests' => array('myTest' => $testConfig)));
     $k->startTest('myTest', 'blarg');
 }