/** * Tests the addCC method. * * @covers JMail::addCc * * @return void */ public function testAddCc() { $recipient = '*****@*****.**'; $name = 'test_name'; $expected = array(array('*****@*****.**', 'test_name')); $this->object->addCc($recipient, $name); $this->assertThat($expected, $this->equalTo(TestReflection::getValue($this->object, 'cc'))); }