tests/Init/IntegrationTest.php
Missing class import via use statement (line '39', column '34'). Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_calendarinstances')->count()));
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '37', column '34'). Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_principals')->count()));
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '38', column '34'). Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_addressbooks')->count()));
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '36', column '34'). Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_users')->where(['key' => $result])->count()));
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '40', column '34'). Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_calendars')->count()));
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Avoid using static access to class '\Settings_Dav_Module_Model' in method 'testAddSampleUserToDav'. Open
Open
$moduleModel = \Settings_Dav_Module_Model::getInstance('Settings:Dav');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Call to undeclared method \App\Db\Query::from
Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_calendarinstances')->count()));
- Exclude checks
Static call to undeclared method \Tests\Init\IntegrationTest::assertTrue
Open
Open
static::assertTrue(0 !== $result, $result);
- Exclude checks
Static call to undeclared method \Tests\Init\IntegrationTest::assertTrue
Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_users')->where(['key' => $result])->count()));
- Exclude checks
Static call to undeclared method \Tests\Init\IntegrationTest::assertTrue
Open
Open
static::assertTrue(1 !== $result, $result);
- Exclude checks
Call to undeclared method \App\Db\Query::from
Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_calendars')->count()));
- Exclude checks
Static call to undeclared method \Tests\Init\IntegrationTest::assertSame
Open
Open
static::assertSame(mb_strlen($result), 10, $result);
- Exclude checks
Argument 1 (str)
is int
but \mb_strlen()
takes string
Open
Open
static::assertSame(mb_strlen($result), 10, $result);
- Exclude checks
Call to undeclared method \App\Db\Query::from
Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_addressbooks')->count()));
- Exclude checks
Static call to undeclared method \Tests\Init\IntegrationTest::assertTrue
Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_calendars')->count()));
- Exclude checks
Call to undeclared method \App\Db\Query::from
Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_principals')->count()));
- Exclude checks
Static call to undeclared method \Tests\Init\IntegrationTest::assertTrue
Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_addressbooks')->count()));
- Exclude checks
Static call to undeclared method \Tests\Init\IntegrationTest::assertTrue
Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_calendarinstances')->count()));
- Exclude checks
Static call to undeclared method \Tests\Init\IntegrationTest::assertTrue
Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_principals')->count()));
- Exclude checks
Call to undeclared method \App\Db\Query::from
Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_users')->where(['key' => $result])->count()));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'CalDav',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_addressbooks')->count()));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_principals')->count()));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
], 1);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$moduleModel = \Settings_Dav_Module_Model::getInstance('Settings:Dav');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
static::assertTrue(1 !== $result, $result);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_calendars')->count()));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Testing add sample user to dav.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_users')->where(['key' => $result])->count()));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$result = $moduleModel->addKey([
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
static::assertTrue(0 !== $result, $result);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
static::assertTrue(1 === ((new \App\Db\Query())->from('dav_calendarinstances')->count()));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
static::assertSame(mb_strlen($result), 10, $result);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function testAddSampleUserToDav()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'CardDav',
- Exclude checks