public function getTableSelectionMock() { return $this->mockista->create('Nette\\Database\\Table\\Selection', array('accessColumn' => true, 'getDataRefreshed' => false, 'getPrimary' => 'id')); }
protected function tearDown() { $this->mockista->assertExpectations(); }
/** * @expectedException Mockista\MockException * @expectedMessage Unexpected call in mock Test::getName() */ function testFreezeMockExceptionOnUndefinedMethod() { $mock = $this->object->create("Mockista\\A"); $mock->freeze(); $this->assertEquals("Test", $mock->getName()); }