for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use ivol\Config\ConfigurationFactory;
class ConfigurationFactoryTest extends PHPUnit_Framework_TestCase
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public function testCreateFromArrayReturnsConfigurationByDefaultOnEmptyConfig()
$actual = ConfigurationFactory::createFromArray();
$this->assertTrue($actual['escape_shell_args']);
$this->assertTrue($actual['escape_shell_cmd']);
}
public function testCreateFromArrayReturnsConfigurationOnPassedArray()
$actual = ConfigurationFactory::createFromArray(['escape_shell_args' => false, 'escape_shell_cmd'=> false]);
$this->assertFalse($actual['escape_shell_args']);
$this->assertFalse($actual['escape_shell_cmd']);
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.