14 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
22 $this->assertNotRegExp(
23 '/this->(?!helper)\S*/iS',
25 'Access to members and methods of Block class through $this is ' .
26 'obsolete in phtml templates. Use only $block instead of $this.' 35 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
49 $this->assertNotRegexp(
50 '/block->_[^_]+\S*\(/iS',
52 'Access to protected and private members of Block class is ' .
53 'obsolete in phtml templates. Use only public members.' 62 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
71 $this->assertNotRegexp(
72 '/type="text\/javascript"/',
74 'Please do not use "text/javascript" type attribute.'
testBlockVariableInsteadOfThis()
testObsoleteBlockMethods()
testObsoleteJavascriptAttributeType()