Snippets tagged “unit-testing”
3 snippets use this tag.
- Create a Laravel Request object on the flyPHP
In Laravel, you can create a Request object on the fly by using the create method of the Request facade.
- How do I test a class that has private methods, fields or inner classes?Java
To test a class that has private methods, fields, or inner classes, you can do the following:
- How to Create Temporary File in JavaJava
Learn the two static methods of createTempFile of the File class. Use the deleteOnExit() method to ensure that the temporary created file will automatically be deleted.