<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;h1&gt;Basic Expectations&lt;/h1&gt;
&lt;table&gt;
	&lt;tr&gt;
		&lt;th&gt;class constructor &lt;/th&gt;
		&lt;th&gt;$type and how it behaves &lt;/th&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;th&gt;new Snap_Anything_Expectation($type) &lt;/th&gt;
		&lt;td&gt; $type is optional (defaults to null. This expectation will match anything. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;th&gt;new Snap_Object_Expectation($type) &lt;/th&gt;
		&lt;td&gt; $type is a string, indicating the type of object to match. An instanceof check is made. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;th&gt;new Snap_Equals_Expectation($type) &lt;/th&gt;
		&lt;td&gt; $type is any value. A == check is made to match. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;th&gt;new Snap_Not_Equals_Expectation($type) &lt;/th&gt;
		&lt;td&gt; $type is any value. A != check is made to match. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;th&gt;new Snap_Identical_Expectation($type) &lt;/th&gt;
		&lt;td&gt; $type is any value. A === check is made to match. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;th&gt;new Snap_Not_Identical_Expectation($type) &lt;/th&gt;
		&lt;td&gt; $type is any value. A !== check is made to match. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;th&gt;new Snap_Regex_Expectation($type) &lt;/th&gt;
		&lt;td&gt; $type is a string. This is a regular expression that is used for matching. The full regex statement, including delimiters needs to be used, for example &amp;#8220;/foo/&amp;#8221;. &lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;In all expectations, a $type is passed into the constructor. Please check the &amp;#8220;type&amp;#8221; column to see what that expectation is matching on.&lt;/p&gt;</body>
  <created-at type="datetime">2009-11-25T19:18:39-08:00</created-at>
  <id type="integer">270436</id>
  <permalink>expectations-reference</permalink>
  <repository-id type="integer">1880</repository-id>
  <title>Expectations Reference</title>
  <updated-at type="datetime">2009-07-19T16:38:59-07:00</updated-at>
  <user-id type="integer">1795</user-id>
</wiki>
