public function testBarHeight() { $this->object->setBarHeight(1); $this->assertSame(1, $this->object->getBarHeight()); $this->object->setBarHeight(true); $this->assertSame(1, $this->object->getBarHeight()); $this->object->setBarHeight('200a'); $this->assertSame(200, $this->object->getBarHeight()); }