Permalink
Browse files

Add testcase

  • Loading branch information...
nijel committed Apr 25, 2012
1 parent bf9aed3 commit 76d17be62465f6593ce698c382f3be7e822727b4
Showing with 31 additions and 0 deletions.
  1. +31 −0 test/classes/PMA_Types_test.php
@@ -0,0 +1,31 @@
+<?php
+/* vim: set expandtab sw=4 ts=4 sts=4: */
+
+require_once 'libraries/Types.class.php';
+
+/**
+ * Test class for PMA_Types.
+ */
+class PMA_TypesTest extends PHPUnit_Framework_TestCase
+{
+ /**
+ * @var PMA_Types
+ */
+ protected $object;
+
+ /**
+ * Sets up the fixture, for example, opens a network connection.
+ * This method is called before a test is executed.
+ */
+ protected function setUp()
+ {
+ $this->object = new PMA_Types;
+ }
+
+ public function testUnary()
+ {
+ $this->assertTrue($this->object->isUnaryOperator('IS NULL'));
+ $this->assertFalse($this->object->isUnaryOperator('='));
+ }
+}
+?>

0 comments on commit 76d17be

Please sign in to comment.