public function testAddPhrase() { $phrase = 'test phrase'; $line = 2; $expected = [['phrase' => $phrase, 'file' => null, 'line' => $line, 'quote' => '']]; $this->_adapterReflection->invoke($this->_adapterMock, $phrase, $line); $actual = $this->_adapterMock->getPhrases(); $this->assertEquals($expected, $actual); $this->_adapterReflection->invoke($this->_adapterMock, '', ''); $actual = $this->_adapterMock->getPhrases(); $this->assertEquals($expected, $actual); }