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);
 }
Esempio n. 2
0
 public function getPhrases()
 {
     $this->assertInternalType('array', $this->_adapterMock->getPhrases());
 }