Esempio n. 1
0
 /**
  * @return array
  */
 public function testIsBoolean()
 {
     $this->assertTrue(CellHelper::isBoolean(true));
     $this->assertTrue(CellHelper::isBoolean(false));
     $this->assertFalse(CellHelper::isBoolean(0));
     $this->assertFalse(CellHelper::isBoolean(1));
     $this->assertFalse(CellHelper::isBoolean("0"));
     $this->assertFalse(CellHelper::isBoolean("1"));
     $this->assertFalse(CellHelper::isBoolean("true"));
     $this->assertFalse(CellHelper::isBoolean("false"));
     $this->assertFalse(CellHelper::isBoolean([true]));
     $this->assertFalse(CellHelper::isBoolean(new \stdClass()));
     $this->assertFalse(CellHelper::isBoolean(null));
 }
Esempio n. 2
0
 /**
  * @expectedException \Box\Spout\Common\Exception\InvalidArgumentException
  *
  * @return void
  */
 public function testGetColumnIndexFromCellIndexShouldThrowIfInvalidCellIndex()
 {
     CellHelper::getColumnIndexFromCellIndex('InvalidCellIndex');
 }