for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class StatementTest extends SwaggerGen_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.
{
/**
* @covers \SwaggerGen\Statement::__construct
*/
public function testConstructor()
$object = new \SwaggerGen\Statement('command', 'some data');
$this->assertInstanceOf('\SwaggerGen\Statement', $object);
$this->assertSame('command', $object->getCommand());
$this->assertSame('some data', $object->getData());
}
public function testConstructor_File()
$object = new \SwaggerGen\Statement('command', 'some data', 'file', 123);
$this->assertSame('file', $object->getFile());
$this->assertSame(123, $object->getLine());
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.