/** * @test */ public function itShouldThrowExceptionWhenGettingColumnsButNoTableIsSet() { $this->setExpectedException($this->exceptionClass); $this->query = new Select(); $this->query->getColumns(); }