public function testFetchColWithEmptyTable() { $table = new \ReflectionProperty('Database\\AbstractTable', 'table'); $table->setAccessible(true); $table->setValue($this->_table, 'test2'); $this->_table->initialize(); $this->assertSame(array(), $this->_table->fetchCol('col1')); }
public function testFetchColWithEmptyTable() { $this->_select->expects($this->once())->method('columns')->with(array('col'), false); $this->_table->method('selectWith')->with($this->_select)->willReturn(array()); $this->assertSame(array(), $this->_table->fetchCol('col')); }