1 | <?php |
||
22 | class GravitonTestCase extends WebTestCase |
||
23 | { |
||
24 | |||
25 | use PrivateClassMethodTrait; |
||
26 | |||
27 | /** |
||
28 | * return our namespaced AppKernel |
||
29 | * |
||
30 | * Most symfony projects keep their AppKernel class in phps |
||
31 | * global space. Since we don't this needs to be overridden. |
||
32 | * |
||
33 | * This also allows us to properly set up the BundleLoader |
||
34 | * infrastucture. This isn't in the DIC since it is used to |
||
35 | * bootstrap the DIC itself. |
||
36 | * |
||
37 | * @param array $options array of options, default: empty, currently ignored |
||
38 | * |
||
39 | * @return \Graviton\AppKernel |
||
40 | */ |
||
41 | 8 | public static function createKernel(array $options = array()) |
|
57 | |||
58 | /** |
||
59 | * Provides a test double for the named calss. |
||
60 | * |
||
61 | * @param string $class Full namespace of the class to be doubled |
||
62 | * @param array $methods List of methods to be doubled |
||
63 | * |
||
64 | * @return \PHPUnit_Framework_MockObject_MockObject |
||
65 | */ |
||
66 | public function getSimpleTestDouble($class, array $methods = array()) |
||
73 | } |
||
74 |