Avoid using static access to class '\App\EmailParser' in method 'testInstancesCreation'. Open
self::$parserCleanModule = \App\EmailParser::getInstance('Leads');
- 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
Avoid using static access to class '\App\EmailParser' in method 'testInstancesCreation'. Open
$this->assertInstanceOf('\App\EmailParser', \App\EmailParser::getInstanceById(\Tests\Base\C_RecordActions::createLeadRecord()->getId(), 'Leads'), 'Expected instance from lead id and module string of \App\TextParser');
- 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
Avoid using static access to class '\App\EmailParser' in method 'testInstancesCreation'. Open
self::$parserRecord = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
- 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
Avoid using static access to class '\Tests\Base\C_RecordActions' in method 'testInstancesCreation'. Open
self::$parserRecord = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
- 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
Avoid using static access to class '\Tests\Base\C_RecordActions' in method 'testUseValue'. Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- 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
Avoid using static access to class '\App\EmailParser' in method 'testInstancesCreation'. Open
self::$parserClean = \App\EmailParser::getInstance();
- 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
Avoid using static access to class '\Tests\Base\C_RecordActions' in method 'testUseValue'. Open
$tmpInstance = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
- 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
Avoid using static access to class '\Tests\Base\C_RecordActions' in method 'testUseValue'. Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- 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
Avoid using static access to class '\App\EmailParser' in method 'testUseValue'. Open
$tmpInstance = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
- 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
Avoid using static access to class '\Tests\Base\C_RecordActions' in method 'testUseValue'. Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- 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
Avoid using static access to class '\Tests\Base\C_RecordActions' in method 'testUseValue'. Open
\Tests\Base\C_RecordActions::createLeadRecord(false);
- 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
Define a constant instead of duplicating this literal "test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,,$(record : email)$" 4 times. Open
->setContent('test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,,$(record : email)$')
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "test1@yetiforce.com" 5 times. Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "test3@yetiforce.com" 3 times. Open
\Tests\Base\C_RecordActions::createLeadRecord()->set('email', 'test3@yetiforce.com');
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "content should be equal" 4 times. Open
->getContent(true), 'content should be equal');
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "test0@yetiforce.com" 5 times. Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "\App\EmailParser" 4 times. Open
$this->assertInstanceOf('\App\EmailParser', self::$parserClean, 'Expected clean instance without module of \App\EmailParser');
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "test2@yetiforce.com" 5 times. Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "Test One " 5 times. Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Call to undeclared method \Tests\App\EmailParser::assertInstanceOf
Open
$this->assertInstanceOf('\App\EmailParser', \App\EmailParser::getInstanceById(\Tests\Base\C_RecordActions::createLeadRecord()->getId(), 'Leads'), 'Expected instance from lead id and module string of \App\TextParser');
- Exclude checks
Call to undeclared method \Tests\App\EmailParser::assertInstanceOf
Open
$this->assertInstanceOf('\App\EmailParser', self::$parserClean, 'Expected clean instance without module of \App\EmailParser');
- Exclude checks
Call to undeclared method \App\EmailParser::setContent
(Did you mean expr->getContent()) Open
$this->assertSame('', self::$parserClean
- Exclude checks
Static call to undeclared method \App\EmailParser::getInstanceById
Open
$this->assertInstanceOf('\App\EmailParser', \App\EmailParser::getInstanceById(\Tests\Base\C_RecordActions::createLeadRecord()->getId(), 'Leads'), 'Expected instance from lead id and module string of \App\TextParser');
- Exclude checks
Static call to undeclared method \App\EmailParser::getInstanceByModel
Open
$tmpInstance = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
- Exclude checks
Call to undeclared method \App\EmailParser::setContent
(Did you mean expr->getContent()) Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
- Exclude checks
Static call to undeclared method \App\EmailParser::getInstance
Open
self::$parserCleanModule = \App\EmailParser::getInstance('Leads');
- Exclude checks
Call to undeclared method \Tests\App\EmailParser::assertInstanceOf
Open
$this->assertInstanceOf('\App\EmailParser', self::$parserCleanModule, 'Expected clean instance with module Leads of \App\EmailParser');
- Exclude checks
Call to undeclared method \Tests\App\EmailParser::assertSame
Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
- Exclude checks
Call to undeclared method \Tests\App\EmailParser::assertSame
Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- Exclude checks
Static call to undeclared method \App\EmailParser::getInstance
Open
self::$parserClean = \App\EmailParser::getInstance();
- Exclude checks
Call to undeclared method \Tests\App\EmailParser::assertInstanceOf
Open
$this->assertInstanceOf('\App\EmailParser', self::$parserRecord, 'Expected instance from record model of \App\EmailParser');
- Exclude checks
Call to undeclared method \Tests\App\EmailParser::assertSame
Open
$this->assertSame('', self::$parserClean
- Exclude checks
Call to undeclared method \Tests\App\EmailParser::assertSame
Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], $tmpInstance->setContent('test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,,$(record : email)$')
- Exclude checks
Static call to undeclared method \App\EmailParser::getInstanceByModel
Open
self::$parserRecord = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
- Exclude checks
Static call to undeclared method \App\EmailParser::getInstanceByModel
Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- Exclude checks
Static call to undeclared method \App\EmailParser::getInstanceByModel
Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- Exclude checks
Call to undeclared method \Tests\App\EmailParser::assertSame
Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- Exclude checks
Static call to undeclared method \App\EmailParser::getInstanceByModel
Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- Exclude checks
Call to undeclared method \Tests\App\EmailParser::assertSame
Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $parserRecord;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @var \App\EmailParser
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $parserClean;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$parserRecord = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertInstanceOf('\App\EmailParser', self::$parserRecord, 'Expected instance from record model of \App\EmailParser');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->setContent('')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing get content function.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing use value function.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertInstanceOf('\App\EmailParser', self::$parserCleanModule, 'Expected clean instance with module Leads of \App\EmailParser');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Tests empty content condition.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Test clean instance with module.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testInstancesCreation()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$parserClean = \App\EmailParser::getInstance();
- Exclude checks
Line exceeds 120 characters; contains 225 characters Open
$this->assertInstanceOf('\App\EmailParser', \App\EmailParser::getInstanceById(\Tests\Base\C_RecordActions::createLeadRecord()->getId(), 'Leads'), 'Expected instance from lead id and module string of \App\TextParser');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Line exceeds 120 characters; contains 130 characters Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->setContent('test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], $tmpInstance->setContent('test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,,$(record : email)$')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->parse()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing instances creation.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->getContent(), 'Clean instance: empty content should return empty result');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- Exclude checks
Line exceeds 120 characters; contains 197 characters Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->getContent(true), 'content should be equal');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->getContent(true), 'content should be equal');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$tmpInstance = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
- Exclude checks
Line exceeds 120 characters; contains 134 characters Open
$this->assertInstanceOf('\App\EmailParser', self::$parserClean, 'Expected clean instance without module of \App\EmailParser');
- Exclude checks
Line exceeds 120 characters; contains 143 characters Open
$this->assertInstanceOf('\App\EmailParser', self::$parserCleanModule, 'Expected clean instance with module Leads of \App\EmailParser');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertInstanceOf('\App\EmailParser', \App\EmailParser::getInstanceById(\Tests\Base\C_RecordActions::createLeadRecord()->getId(), 'Leads'), 'Expected instance from lead id and module string of \App\TextParser');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testEmptyContent()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\Tests\Base\C_RecordActions::createLeadRecord()->save();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Line exceeds 120 characters; contains 197 characters Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- Exclude checks
Line exceeds 120 characters; contains 126 characters Open
->setContent('test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,,$(record : email)$')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('', self::$parserClean
- Exclude checks
Line exceeds 120 characters; contains 126 characters Open
->setContent('test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,,$(record : email)$')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertInstanceOf('\App\EmailParser', self::$parserClean, 'Expected clean instance without module of \App\EmailParser');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\Tests\Base\C_RecordActions::createLeadRecord()->set('email', 'test3@yetiforce.com');
- Exclude checks
Line exceeds 120 characters; contains 261 characters Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], $tmpInstance->setContent('test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,,$(record : email)$')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->parse()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\Tests\Base\C_RecordActions::createLeadRecord()->set('noapprovalemails', '1');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->setContent('test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,,$(record : email)$')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$tmpInstance->emailoptout = false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Test record instance.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @var \App\EmailParser
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Test clean instance.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->parse()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @var \App\EmailParser
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $parserCleanModule;
- Exclude checks
Line exceeds 120 characters; contains 132 characters Open
$this->assertInstanceOf('\App\EmailParser', self::$parserRecord, 'Expected instance from record model of \App\EmailParser');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->parse()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->getContent(true), 'Clean instance: content should be equal');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->setContent('test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,,$(record : email)$')
- Exclude checks
Line exceeds 120 characters; contains 220 characters Open
$this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->getContent(true), 'content should be equal');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\Tests\Base\C_RecordActions::createLeadRecord(false);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->parse()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$parserCleanModule = \App\EmailParser::getInstance('Leads');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testGetContent()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->setContent('test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,,$(record : email)$')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\Tests\Base\C_RecordActions::createLeadRecord()->save();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testUseValue()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Line exceeds 120 characters; contains 126 characters Open
->setContent('test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,,$(record : email)$')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->getContent(true), 'content should be equal');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->parse()
- Exclude checks