public function testEnabledFeatures() { $supported = array('booleans', 'schema', 'relationships', 'sources'); $notSupported = array('arrays', 'transactions'); foreach ($supported as $feature) { $this->assertTrue(Sqlite3::enabled($feature)); } foreach ($notSupported as $feature) { $this->assertFalse(Sqlite3::enabled($feature)); } $this->assertNull(Sqlite3::enabled('unexisting')); }
public function testEnabledFeatures() { $this->assertTrue(Sqlite3::enabled()); $this->assertTrue(Sqlite3::enabled('relationships')); $this->assertFalse(Sqlite3::enabled('arrays')); }