Minor bugs fixes

There was a syntax problem with some php versions with the list($a, $b)
into foreach into main class ; And a bug about write context a test
into exemple.php