public function testGetExpression() { $panel = new Panel('Foobar', $this->config); $result = $panel->getExpression(); $this->assertFalse(empty($result), 'Expression is empty'); $this->assertTrue(is_string($result), 'Expression is not a string`'); $this->assertContains(Panel::EXP_TOKEN, $result, 'Expression does not contain tokens'); // Cleaned up expression $result = $panel->getExpression(true); $this->assertNotContains(Panel::EXP_TOKEN, $result, 'Expression contains tokens'); }