Skip to content

Instantly share code, notes, and snippets.

View padraic's full-sized avatar
💭
Contact me by email. I am temporarily inactive on Github.

Pádraic Brady padraic

💭
Contact me by email. I am temporarily inactive on Github.
View GitHub Profile
<?php
ini_set('display_errors', 1);
require_once 'Zend/Markup.php';
$source = <<<string
[list]
[*] Subject 1
[list]
[*] First
[*] Second
<?php
require_once 'Zend/Feed/Writer/Feed.php';
/**
* Create the parent feed
*/
$feed = new Zend_Feed_Writer_Feed;
$feed->setTitle('Paddy\'s Podcast');
<?php
require_once 'Zend/Filter/StripTags.php';
$source = <<<string
<img src=http://www.example.com/image.png></img>
string;
$filter = new Zend_Filter_StripTags;
http://framework.zend.com/favicon.ico
GET /favicon.ico HTTP/1.1
Host: framework.zend.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
<html>
<body>
<div style="position: absolute; top: 10px; left: 10px; background-color: red; z-index: 1; width: 100px; height: 100px; margin: 0;"><div>
<div style="position: absolute; top: 10px; left: 10px; background-color: green; z-index: 2; width: 100px; height: 100px; margin: 0;"><div>
</body>
</html>
Mutateme_MutableFile
[x] Should maintain file path info once passed in constructor
[x] Should not have mutations before generation
[x] Should not have detected mutables before generation
[x] Should not generate mutables for empty class
[x] Should not generate mutations for empty class
[x] Should not generate mutables if only empty methods in class
[x] Should not generate mutations if only empty methods in class
[x] Should generate mutables even if method body is not viable
[x] Should not generate mutations if method body is not viable