You are here

public function MailchimpTest::testVersion in Mailchimp 8

Test the version number.

File

lib/mailchimp-api-php/tests/MailchimpTest.php, line 28

Class

MailchimpTest
Mailchimp library test cases.

Namespace

Mailchimp\Tests

Code

public function testVersion() {
  $mc = new Mailchimp();
  $this
    ->assertEquals($mc::VERSION, '2.0.0');
  $this
    ->assertEquals(json_decode(file_get_contents('composer.json'))->version, $mc::VERSION);
}