/** * test for CheckConfigSource * * @return void */ public function testCheckConfigSource() { $this->object->setSource('unexisted.config.php'); $this->assertFalse($this->object->checkConfigSource()); $this->assertEquals(0, $this->object->source_mtime); $this->object->setSource('libraries/config.default.php'); $this->assertNotEmpty($this->object->getSource()); $this->assertTrue($this->object->checkConfigSource()); }