for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Brownie\Util\StorageList;
class StorageListTest 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.
{
/**
* @var StorageList
*/
private $storageList;
protected function setUp()
$this->storageList = new StorageList(array(
'test1' => 'Hello1',
'test3' => 'Hello3',
'test4' => 'Hello4',
));
}
protected function tearDown()
$this->storageList = null;
public function testGet()
$this->assertEquals('Hello1', $this->storageList->get('test1'));
$this->assertEquals('Hello3', $this->storageList->get('test3'));
$this->assertEquals('Hello4', $this->storageList->get('test4'));
$this->assertNull($this->storageList->get('test5'));
public function testToArray()
$list = array(
);
$this->assertEquals($list, $this->storageList->toArray());
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.