Kraken\_Unit\Throwable\ThrowableProxyTest::testApiGetTraceAsString_ReturnsTraceAsString PHP Метод

testApiGetTraceAsString_ReturnsTraceAsString() публичный Метод

    public function testApiGetTraceAsString_ReturnsTraceAsString()
    {
        $mock = new ThrowableMock();
        $proxy = $this->getMock(ThrowableProxy::class, ['toThrowable'], [], '', false);
        $proxy->expects($this->once())->method('toThrowable')->will($this->returnValue($mock));
        $this->assertSame($mock->getTraceAsString(), $proxy->getTraceAsString());
    }