/** * @covers Fuel\Core\OrientDB::select_array */ public function testSelect_array() { $result = OrientDB::select_array(array("test", "test2")); $this->assertEquals(get_class($result), "Doctrine\\OrientDB\\Query\\Command\\Select"); $this->assertEquals($result->getTokenValue("Projections"), array('test', 'test2')); try { $result = OrientDB::select_array(); $this->fail("Not occurs PhpErrorException"); } catch (PhpErrorException $e) { // It's expected exception. Do nothing. } catch (Exception $e) { $name = get_class($e); $this->fail("Unexpected exception {$name}: {$e->getMessage()}"); } }