The acceptance testing part of a testing methodology is the final phase of functional software testing and involves making sure that all the product/project requirements have been met and that the end-users and customers have tested the system to make sure it operates as expected and meets all their defined requirements:
Integration Testing
The Integration testing part of a testing methodology is the testing of the different modules/components that have been successfully unit tested when integrated together to perform specific tasks and activities (also known as scenario testing). This testing is usually done with a combination of automated functional tests and manual testing depending on how easy it is to create automated tests for specific integrated components.
Unit Testing
The Unit testing part of a testing methodology is the testing of individual software modules or components that make up an application or system. These tests are usually written by the developers of the module and in a test-driven-development methodology (such as Agile, Scrum or XP) they are actually written before the module is created as part of the specification. Each module function is tested by a specific unit test fixture written in the same programming language as the module.
Software Testing Methodologies
Functional Testing
Unit Testing
Integration Testing
System Testing
Acceptance Testing
Non-Functional Testing
Performance Testing
Security Testing
Usability Testing
Compatibility Testing
Software Testing
Software testing is an investigation conducted to provide stakeholders with information about the quality of the product or service under test.[1] Software testing can also provide an objective, independent view of the software to allow the business to appreciate and understand the risks of software implementation. Test techniques include the process of executing a program or application with the intent of finding software bugs (errors or other defects).
It involves the execution of a software component or system component to evaluate one or more properties of interest. In general, these properties indicate the extent to which the component or system under test:
- meets the requirements that guided its design and development,
- responds correctly to all kinds of inputs,
- performs its functions within an acceptable time,
- is sufficiently usable,
- can be installed and run in its intended environments, and
- achieves the general result its stakeholders desire.
GZIP Compression
When a user hits your website a call is made to your server to deliver the requested files.
The bigger these files are the longer it’s going to take for them to get to your browser and appear on the screen.
Gzip compresses your webpages and style sheets before sending them over to the browser. This drastically reduces transfer time since the files are much smaller.
In terms of cost versus benefit, gzip compression should be near the top of your page speed optimizations if you don’t have it setup already.
stdClass
stdClass is Generic empty class in PHP OR stdClass is universal base class in PHP.
stdClass is used to create anonymous objects with properties.
When we need to create an object without having new class. then we used stdClass class which is inbuilt in PHP.
After create object, we can add properties.
<?php
$object=new stdClass();
$object->name=’PHPCodez’;
echo $object->name;
?>
Predefined Constants
These constants are defined by the PHP core. This includes PHP, the Zend engine, and SAPI modules.
EXAMPLE
PHP_VERSION (string)
The current PHP version as a string in “major.minor.release[extra]” notation.
PHP_MAJOR_VERSION (integer)
The current PHP “major” version as an integer (e.g., int(5) from version “5.2.7-extra”). Available since PHP 5.2.7.
PHP_MINOR_VERSION (integer)
The current PHP “minor” version as an integer (e.g., int(2) from version “5.2.7-extra”). Available since PHP 5.2.7.
php replace html tags
<?php preg_replace(“/<lis(.+?)>(.+?)</li>/is”, “<span>$2</span>”, $string); ?>
Get IE Version PHP
<?php
preg_match(‘/MSIE (.*?);/’, $_SERVER[‘HTTP_USER_AGENT’], $matches);
echo $version = $matches[1];
?>