Draw driving route

Drawing driving route directions between two locations using Google Directions in Google Map Android

In this article, we will develop an Android application which facilitates users to tap two locations in the Google Map. The first tap point in the map will be the source of the route and the second tap point in the map will be the destination of the route. On taping the second point, a […]

Draw driving route

Android : Driving route from my location to destination in Google Maps

In this article, we will develop an Android application which demonstrates how to draw a driving route from my location ( current location ) to a destination location in Google Maps Android API V2. On long pressing a location in the Google Maps, a driving route will be drawn from my current location to the […]

Server Side Swift Vapor: HelloWorld Web Page Using Leaf

In this article, we will see how to create a simple web page that displays “Hello World” using Server Side Swift framework called Vapor. 1. Working Environment Xcode : 10.2.1 Swift : 5.0.1 Vapor Toolbox : 3.1.0 Platform : macOS Mojave ( 10.14.5 ) 2. Create new project In this step we will create a […]

Server Side Swift Vapor : Fix the error in creating new project

In this article, we will see how to resolve an error that occurs while creating a server side Swift project using the Vapor framework. Working Environment Xcode : 10.2.1 Swift : 5.0.1 Vapor Toolbox : 3.1.0 Platform : macOS Mojave ( 10.14.5 ) Error On executing the command vapor xcode, an error message is displayed […]

PHPUnit – Database Testing

In this article, we will see how to test database operations using PHPUnit. In this example, we will create a class called GuestBook, which will have a function called addGuest(). The addGuest() will add a row to database table. Using PHPUnit, we will test, whether the addGuest() is adding new row to database table. 1. […]

PHPUnit – Test Suit with XML file

In this article, we will see how to create a test suit with an xml file. In our previous example, we have created a file system based test suit. One of the drawback of the file system based test suit is that, we don’t have any control over the order of execution of test case […]

PHPUnit – Test Suit using file system

Test suit is a collection of test cases. PHPUnit can compose a test suit by recursively traversing through a directory in the file system. In our previous example, we have saved our test case files in the directory tests. PHPUnit can execute all the test cases in the directory tests as a test suite with […]

PHPUnit – Using fixtures for tests

In a unit test, we usually want to do some common codes like object initialization, database connectivity etc. Suppose, if there exists multiple tests in a testing class, then it will be really cumbersome to write same set of codes in all the tests. In order to share common set of codes in multiple tests, […]

PHPUnit – Testing output of ‘echo’ or ‘print’

In this article, we will see how to test the output of echo or print. In our previous articles, we have created a Calculator class with functionalities like sum, subtract and division. In this example, we will add another function called multiply. The multiply function will take two arguments and prints its multiplied values using […]

PHPUnit – Testing Exceptions

In this article, we will see how to test a function that throws an exception when condition meets. In our previous examples, we have created a calculator class with functionalities addition and subtraction. In this example, we will add division and will be tested using PHPUnit to check whether the function can throw exception when […]

1 2 3