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 GoogleTest 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\Google::className(),
'options' => [
'center' => '40,50',
'zoom' => '13',
'size' => '640x100',
'scale' => '2',
'markers' => [
'size' => 'tiny',
'40,50',
],
];
$this->assertEquals(
'http://maps.googleapis.com/maps/api/staticmap?center=40,50&zoom=13&size=640x100&scale=2&markers=size:tiny|40,5',
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.