Exemple #1
0
 /**
  * Adds mock objects for some methods.
  *
  * @param  TestCase                                 $test        A test object.
  * @param  PHPUnit_Framework_MockObject_MockObject  $mockObject  The mock object.
  * @param  array                                    $options     A set of options to configure the mock.
  *
  * @return  PHPUnit_Framework_MockObject_MockObject  The object with the behaviours added
  *
  * @since   3.4
  */
 public static function addBehaviours($test, $mockObject, $options)
 {
     return parent::addBehaviours($test, $mockObject, $options);
 }
 /**
  * Adds mock objects for some methods.
  *
  * @param   TestCase                                 $test        A test object.
  * @param   PHPUnit_Framework_MockObject_MockObject  $mockObject  The mock object.
  * @param   array                                    $options     A set of options to configure the mock.
  *
  * @return  PHPUnit_Framework_MockObject_MockObject  The object with the behaviours added
  *
  * @since   3.4
  */
 public static function addBehaviours($test, $mockObject, $options)
 {
     // Mock calls to JApplicationCms::getMenu();
     $mockObject->expects($test->any())->method('getMenu')->will($test->returnValue(TestMockMenu::create($test)));
     return parent::addBehaviours($test, $mockObject, $options);
 }