ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
cweagans\Composer\Tests\PatchEventTest Class Reference
+ Inheritance diagram for cweagans\Composer\Tests\PatchEventTest:
+ Collaboration diagram for cweagans\Composer\Tests\PatchEventTest:

Public Member Functions

 testGetters ($event_name, PackageInterface $package, $url, $description)
 Tests all the getters. More...
 
 patchEventDataProvider ()
 

Detailed Description

Definition at line 14 of file PatchEventTest.php.

Member Function Documentation

◆ patchEventDataProvider()

cweagans\Composer\Tests\PatchEventTest::patchEventDataProvider ( )

Definition at line 29 of file PatchEventTest.php.

References array, cweagans\Composer\PatchEvents\POST_PATCH_APPLY, and cweagans\Composer\PatchEvents\PRE_PATCH_APPLY.

29  {
30  $prophecy = $this->prophesize('Composer\Package\PackageInterface');
31  $package = $prophecy->reveal();
32 
33  return array(
34  array(PatchEvents::PRE_PATCH_APPLY, $package, 'https://www.drupal.org', 'A test patch'),
35  array(PatchEvents::POST_PATCH_APPLY, $package, 'https://www.drupal.org', 'A test patch'),
36  );
37  }
Create styles array
The data for the language used.

◆ testGetters()

cweagans\Composer\Tests\PatchEventTest::testGetters (   $event_name,
PackageInterface  $package,
  $url,
  $description 
)

Tests all the getters.

patchEventDataProvider

Definition at line 21 of file PatchEventTest.php.

References $url.

21  {
22  $patch_event = new PatchEvent($event_name, $package, $url, $description);
23  $this->assertEquals($event_name, $patch_event->getName());
24  $this->assertEquals($package, $patch_event->getPackage());
25  $this->assertEquals($url, $patch_event->getUrl());
26  $this->assertEquals($description, $patch_event->getDescription());
27  }
$url
Definition: shib_logout.php:72

The documentation for this class was generated from the following file: