tests/php/WebsiteTest.php
/**
     * test {@link recordError()} is creating related error records
     */
test  recordError() is creating related error records
test recordError () is creating related error records
public function testRecordError()
    {
        $site = $this->objFromFixture('Website', 'dynamic');
        $this->assertTrue($this->invokeMethod($site, 'recordError'));
        $this->assertTrue($this->invokeMethod($site, 'recordError', [404]));
        $records = $site->NotificationRecords();
        $this->assertEquals($records->count(), 2);
    }
public function testRecordError ( ) { $ site = $ this -> objFromFixture ( 'Website' , 'dynamic' ) ; $ this -> assertTrue ( $ this -> invokeMethod ( $ site , 'recordError' ) ) ; $ this -> assertTrue ( $ this -> invokeMethod ( $ site , 'recordError' , [ 404 ] ) ) ; $ records = $ site -> NotificationRecords ( ) ; $ this -> assertEquals ( $ records -> count ( ) , 2 ) ; }
test {@link recordError()} is creating related error records
test { @link recordError () } is creating related error records
//record error even when no code is passed //record error when code is passed