constants() public method

Get the list of loaded constants.
public constants ( ) : array
return array
Esempio n. 1
0
 /**
  * Test that constructor imports file path constants.
  *
  * @return void
  */
 public function testConstructImportsConstants()
 {
     $config = new AssetConfig();
     $this->assertArrayHasKey('WEBROOT', $config->constants());
     $this->assertEquals(rtrim(WEBROOT, DS), $config->constants()['WEBROOT']);
 }