public function testCheckEnquiry() { $stamp = 20150818102512; $date = '18/08/2015'; $enq = new Enquiry('Robert Mbabu', '0720563214', 'Fixed Boundary Survey', 'In my plot', $date, $stamp); $enq->persist(); Enquiry::Check($stamp); $enquiry = Enquiry::GetEnquiry($stamp); $this->assertInstanceOf('Enquiry', $enquiry); $this->assertTrue($enquiry->status == 0); }