ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

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 }

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

◆ testGetters()

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

Tests all the getters.

@dataProvider patchEventDataProvider

Definition at line 21 of file PatchEventTest.php.

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

References $description, and $url.


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