for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Codru Components
*
* @author Maxim Vasiliev <[email protected]>
* @license http://www.opensource.org/licenses/bsd-license.php
*/
class OpenStreetTest extends \yii\codeception\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 $appConfig = '@tests/unit/_config.php';
public function testGetMapUrl()
$map = [
'class' => \codru\staticmap\types\OpenStreet::className(),
'options' => [
'center' => '40,50',
'zoom' => '15',
'size' => '1024x200',
'markers' => [
'40,50',
'ol-marker',
],
];
$this->assertEquals(
'http://staticmap.openstreetmap.de/staticmap.php?center=40,50&zoom=15&size=1024x200&markers=40,50,ol-marke',
Yii::createObject($map)->getMapUrl()
);
}
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.