These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | namespace Kunstmaan\AdminListBundle\Tests\AdminList; |
||
3 | |||
4 | use Kunstmaan\AdminListBundle\AdminList\AdminListFactory; |
||
5 | use Kunstmaan\AdminListBundle\AdminList\Configurator\AdminListConfiguratorInterface; |
||
6 | use Kunstmaan\AdminListBundle\AdminList\Configurator\ExportListConfiguratorInterface; |
||
7 | |||
8 | /** |
||
9 | * Generated by PHPUnit_SkeletonGenerator on 2012-09-26 at 13:21:32. |
||
10 | */ |
||
11 | class AdminListFactoryTest extends \PHPUnit_Framework_TestCase |
||
12 | { |
||
13 | /** |
||
14 | * @var AdminListFactory |
||
15 | */ |
||
16 | protected $object; |
||
17 | |||
18 | /** |
||
19 | * Sets up the fixture, for example, opens a network connection. |
||
20 | * This method is called before a test is executed. |
||
21 | */ |
||
22 | protected function setUp() |
||
23 | { |
||
24 | $this->object = new AdminListFactory; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Tears down the fixture, for example, closes a network connection. |
||
29 | * This method is called after a test is executed. |
||
30 | */ |
||
31 | protected function tearDown() |
||
32 | { |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @covers Kunstmaan\AdminListBundle\AdminList\AdminListFactory::createList |
||
37 | */ |
||
38 | public function testCreateList() |
||
39 | { |
||
40 | /* @var AdminListConfiguratorInterface $mockConfig */ |
||
41 | $mockConfig = $this->getMock('Kunstmaan\AdminListBundle\AdminList\Configurator\AdminListConfiguratorInterface'); |
||
0 ignored issues
–
show
|
|||
42 | $list = $this->object->createList($mockConfig); |
||
43 | |||
44 | $this->assertInstanceOf('Kunstmaan\AdminListBundle\AdminList\AdminList', $list); |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @covers Kunstmaan\AdminListBundle\AdminList\AdminListFactory::createExportList |
||
49 | */ |
||
50 | public function testCreateExportList() |
||
51 | { |
||
52 | /* @var ExportListConfiguratorInterface $mockConfig */ |
||
53 | $mockConfig = $this->getMock('Kunstmaan\AdminListBundle\AdminList\Configurator\ExportListConfiguratorInterface'); |
||
0 ignored issues
–
show
The method
PHPUnit_Framework_TestCase::getMock() has been deprecated with message: Method deprecated since Release 5.4.0; use createMock() or getMockBuilder() instead
This method has been deprecated. The supplier of the class has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.
Loading history...
|
|||
54 | $list = $this->object->createExportList($mockConfig); |
||
55 | |||
56 | $this->assertInstanceOf('Kunstmaan\AdminListBundle\AdminList\ExportList', $list); |
||
57 | } |
||
58 | } |
||
59 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.