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