Skip to content

Commit

Permalink
Merge pull request #537 from uppe-r/license-date-range
Browse files Browse the repository at this point in the history
Add license date range unit test
  • Loading branch information
Matt Bernier committed Oct 31, 2017
2 parents c3da622 + 6773562 commit 2a4a153
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/unit/SendGridTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,13 @@ public function test_ips__ip_address__get()
$this->assertEquals($response->statusCode(), 200);
}

public function test_license_date_range()
{
$license_file = file_get_contents("../../LICENSE.txt");
$current_year = date("Y");
$this->assertInternalType("int", strpos($license_file, "Copyright (c) 2012-" . $current_year . " SendGrid, Inc."));
}

public function test_mail_batch_post()
{
$request_headers = array("X-Mock: 201");
Expand Down

0 comments on commit 2a4a153

Please sign in to comment.