public function testDecomposeReturnsDecomposition() { $mock = $this->getMock('Chippyash\\Math\\Matrix\\Interfaces\\DecompositionInterface'); $mock->expects($this->once())->method('decompose')->will($this->returnValue($mock)); $mA = new NumericMatrix([]); $this->assertEquals($mock, $mA->decompose($mock)); }