The vcan interface must be present for running the unit tests
modprobe vcan ip link add dev vcan0 type vcan ip link set up vcan0
Testing the module candump without installation:
php -dextension=build/Release/di.so ./bin/di-candump vcan0