We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b054383 commit 3a1eff7Copy full SHA for 3a1eff7
test/unit/LicenseYearTest.php
@@ -0,0 +1,22 @@
1
+<?php
2
+
3
+namespace SendGrid\Test;
4
5
+class LicenseYearTest extends \PHPUnit_Framework_TestCase
6
+{
7
8
+ public function testLicenseYear()
9
+ {
10
+ $license = explode("\n", file_get_contents('../../LICENSE.txt'));
11
+ $copyright = '';
12
+ foreach ($license as $line) {
13
+ if (strpos($line, 'Copyright') === 0) {
14
+ $copyright = $line;
15
+ break;
16
+ }
17
18
+ $year = date('Y');
19
+ $expected = "Copyright (c) 2016-{$year} SendGrid, Inc.";
20
+ $this->assertEquals($expected, $copyright);
21
22
+}
0 commit comments