public function testJoinUsingInternalException() { $select = new Select($this->db); try { $select->joinUsingInternal('type', 'name', 'cond'); } catch (SelectException $e) { $this->assertSame('You can only perform a joinUsing after specifying a FROM table', $e->getMessage()); } }