Skip to content

Commit

Permalink
Merge pull request #47 from paul999/update_event_check
Browse files Browse the repository at this point in the history
Require a dot after the vendor name in an event.
  • Loading branch information
Derky authored Jul 25, 2016
2 parents eb76873 + 480555b commit 5238b08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Tests/Tests/epv_test_validate_event_names.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ public function validateDirectory(array $dirList)
}

$events = $exporter->get_events();
$vendor = strtolower(str_replace('/', '.', $this->namespace)); // event names are requierd to be lowercase!
// event names are required to be lowercase
// event names should end with a dot to seperate the vendor.name and the actual event name.
$vendor = strtolower(str_replace('/', '.', $this->namespace)) + '.';

foreach ($events as $event)
{
Expand All @@ -67,6 +69,6 @@ public function validateDirectory(array $dirList)

public function testName()
{
return "Validate directory structure";
return "Test event names";
}
}

0 comments on commit 5238b08

Please sign in to comment.