Пример #1
0
 public function getTableSelectionMock()
 {
     return $this->mockista->create('Nette\\Database\\Table\\Selection', array('accessColumn' => true, 'getDataRefreshed' => false, 'getPrimary' => 'id'));
 }
Пример #2
0
 protected function tearDown()
 {
     $this->mockista->assertExpectations();
 }
Пример #3
0
 /**
  * @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());
 }