phpunit related learning suggestions
ringa_lee
ringa_lee 2017-05-16 13:10:52
0
1
602

I just briefly taught myself phpunit and simply tested the code I wrote. I feel that I already understand it. I would like to ask for more in-depth information and methods related to phpunit.
For example: interface development, what comes is json, the original framework code processes json and puts it into certain variables. phpunit tests classes. I seem to be unable to simulate the correct parameter transfer.

Another example: the product details interface, which returns a lot of data, cannot use $this->assertEquals($expected,$actual); to verify whether the interface is OK.

Looking for some learning directions, information, etc.

ringa_lee
ringa_lee

ringa_lee

reply all(1)
刘奇

phpunit can also simulate interface requests. It is enough to read the documentation. You can also refer to the test code of some frameworks, such as the test code in laravel, which integrates some codes for accessing interface requests. You can refer to

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template