~ubuntu-branches/ubuntu/vivid/php-parser/vivid

« back to all changes in this revision

Viewing changes to test/PhpParser/ParserTest.php

  • Committer: Package Import Robot
  • Author(s): David Prévot, nikic, David Prévot
  • Date: 2014-10-16 22:04:02 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20141016220402-kbqssv91y2t8ouk3
Tags: 1.0.1-1
[ nikic ]
* Disallow new without a class name
* Fix var_dump truncation with xdebug in php-parse.php
* Add ability to pass code directly to php-parse.php
* Release version 1.0.1

[ David Prévot ]
* Improve manual page generation

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
        $dumper = new NodeDumper;
15
15
 
16
16
        $stmts = $parser->parse($code);
17
 
        $this->assertEquals(
 
17
        $this->assertSame(
18
18
            $this->canonicalize($dump),
19
19
            $this->canonicalize($dumper->dump($stmts)),
20
20
            $name
36
36
 
37
37
            $this->fail(sprintf('"%s": Expected Error', $name));
38
38
        } catch (Error $e) {
39
 
            $this->assertEquals($msg, $e->getMessage(), $name);
 
39
            $this->assertSame($msg, $e->getMessage(), $name);
40
40
        }
41
41
    }
42
42