You are here

protected function DefaultValueBinderTest::createCellStub in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Cell/DefaultValueBinderTest.php \DefaultValueBinderTest::createCellStub()
1 call to DefaultValueBinderTest::createCellStub()
DefaultValueBinderTest::testBindValue in vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Cell/DefaultValueBinderTest.php
@dataProvider binderProvider

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Cell/DefaultValueBinderTest.php, line 18

Class

DefaultValueBinderTest

Code

protected function createCellStub() {

  // Create a stub for the Cell class.
  $this->cellStub = $this
    ->getMockBuilder('PHPExcel_Cell')
    ->disableOriginalConstructor()
    ->getMock();

  // Configure the stub.
  $this->cellStub
    ->expects($this
    ->any())
    ->method('setValueExplicit')
    ->will($this
    ->returnValue(true));
}