/** * @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)); }
/** * @expectedException \Box\Spout\Common\Exception\InvalidArgumentException * * @return void */ public function testGetColumnIndexFromCellIndexShouldThrowIfInvalidCellIndex() { CellHelper::getColumnIndexFromCellIndex('InvalidCellIndex'); }