File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 11The MIT License (MIT)
22
3- Copyright (c) 2016 -2017 SendGrid, Inc.
3+ Copyright (c) 2012 -2017 SendGrid, Inc.
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace SendGrid \Test ;
4+
5+ class LicenceYearTest extends \PHPUnit_Framework_TestCase
6+ {
7+ public function testConstructor ()
8+ {
9+ $ rootDir = __DIR__ . '/../.. ' ;
10+
11+ $ license = explode ("\n" , file_get_contents ("$ rootDir/LICENSE.txt " ));
12+ $ copyright = $ license [2 ];
13+
14+ $ year = date ('Y ' );
15+
16+ $ expected = "Copyright (c) 2012- {$ year } SendGrid, Inc. " ;
17+
18+ $ this ->assertEquals ($ expected , $ copyright );
19+ }
20+
21+ }
You can’t perform that action at this time.
0 commit comments