These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Aimeos\Controller\Jobs; |
||
4 | |||
5 | |||
6 | /** |
||
7 | * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0 |
||
8 | * @copyright Aimeos (aimeos.org), 2015-2017 |
||
9 | */ |
||
10 | class BaseTest extends \PHPUnit\Framework\TestCase |
||
11 | { |
||
12 | public function testGetTypeItemNotFound() |
||
13 | { |
||
14 | $context = \TestHelperJobs::getContext(); |
||
15 | $aimeos = \TestHelperJobs::getAimeos(); |
||
16 | |||
17 | $object = new TestAbstract( $context, $aimeos ); |
||
18 | |||
19 | $this->setExpectedException( '\\Aimeos\\Controller\\Jobs\\Exception' ); |
||
20 | $object->getTypeItemPublic( 'product/type', 'product', 'test' ); |
||
21 | } |
||
22 | } |
||
23 | |||
24 | |||
25 | |||
26 | class TestAbstract extends \Aimeos\Controller\Jobs\Base |
||
0 ignored issues
–
show
|
|||
27 | { |
||
28 | public function getTypeItemPublic( $prefix, $domain, $code ) |
||
29 | { |
||
30 | $this->getTypeItem( $prefix, $domain, $code ); |
||
31 | } |
||
32 | } |
Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.